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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to