How do you render a different .js.erb
file while using Ajax?
For example:
<% form_tag user_path, :method => :get, :remote => true do %>
This goes through the UserController#show
and then renders users/show.js.erb
. How do I make it go through the UserController#show
and then render users/hello.js.erb
?