Hi, I have a simple RJS file which adds some text to a div like so....
VIEW
<%= button_to_remote "Test", :url => {:action => 'test'} %>
RJS
page.insert_html :bottom, "testdiv", "test value"
This works fine, however I'd like to place the RJS file in a different directory and use it with multiple controllers.
<%= button_to_remote "Test", :url => {:controller => 'testcontroller', :action => 'test'} %>
The RJS file is the same, just moved to the 'testcontroller' view directory. This dosen't seem to be working, can anyone advise me as to what's going wrong? Thanks.