controller methods and my .rjs file

R

Robert Lincolne

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
 
R

Robert Lincolne

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.
 
R

Robert Lincolne

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,284
Messages
2,571,411
Members
48,103
Latest member
MadieDeitz

Latest Threads

Top