# Controller methods and my .rjs file

**URL:** <https://www.ruby-forum.com/t/controller-methods-and-my-rjs-file/129549>\
**Category:** Ruby\
**Created:** [February 19, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/controller-methods-and-my-rjs-file/129549 "2008-02-19T14:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlorimor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Post date:** [February 19, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/controller-methods-and-my-rjs-file/129549/1 "2008-02-19T14:08:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rlorimor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Post date:** [February 19, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/controller-methods-and-my-rjs-file/129549/2 "2008-02-19T14:20:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rlorimor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Post date:** [February 19, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/controller-methods-and-my-rjs-file/129549/3 "2008-02-19T14:32:43Z")

</div>

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.
