[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

controller methods and my .rjs file

Robert Lincolne

2/19/2008 1:08:00 PM

Hey Guys,

My first post, but I've been an avid lurker (is there such thing?) and
spent many many hours reading these forums! Thanks so much.

Anyway, I've got a simple insert controller called 'process_personal'
and am wanting to associate my .rjs file to go with it, so that's
naturally called 'process_personal.rjs'.

However it just isn't being included no matter what I do, despite the
method being called no worries.

I made a simple one based on the RJS peepcast for highlighting and that
works a treat in the same controller file and even on the same page.

I stuck a debugger statement in the RJS, but even that isn't being
triggered, so I know it's not including it.

Is there anything I have missed? Any further association aside from
making sure the method and the RJS file have the same name (.rjs suffix
for the RJS file of course).

Sure appreciate any help, quite stuck here :)

Thanks

Rob
--
Posted via http://www.ruby-....

2 Answers

Robert Lincolne

2/19/2008 1:20:00 PM

0

lol, even when I call my other controller method via the form (the
simple highlight one) it works.

SO. For some reason the 'process_personal' controller method and the
corresponding RJS file hate each other.
--
Posted via http://www.ruby-....

Robert Lincolne

2/19/2008 1:33:00 PM

0

ok, I am VERY happy. FIgured it out. I hope this leaves some good info
for someone following my footsteps.

I was receiving a no-method error (ie, no corresponding column in the
database) but because I was calling an AJAX method the error wasn't
being displayed.

Make sure you use Firebug! It saved my life and showed me what I did
wrong. I actually first picked it up in the mongrel log/trace thing,
but firbug made my life so much easier.
--
Posted via http://www.ruby-....