Rename it .rjs.
I don't quite understand I have an idex.rhtml, with the link to the rate controller via a link_to_remote and a rate.rjs file. This is correct, no?
Yes. Try this in your controller instead, and let us know:
def rate render :update do |page| page.alert("RJS WORKS") end end
Michael Trier wrote:
> I don't quite understand I have an idex.rhtml, with the link > to the rate controller via a link_to_remote and a rate.rjs file. > This is correct, no?
Yes. Try this in your controller instead, and let us know:
def rate render :update do |page| page.alert("RJS WORKS") end end
I prefer this style myself. RJS templates are more about logic and functionality, so it makes sense to put them in the controller. The one exception for me would be a template that I might use in several different controllers.
_Kevin
Maybe an idea about my setup will help: I am using Apache 2.2 and Mongrel and reverse_proxy_fix.
Would you email me the necessary files: controller, views, helpers. I'll take a look.
Michael
Great.
Michael