Hello,
I have the following link_to_remote code that calls the going method. It works right but I want that after the call the name "Not going!" changes to "I am going!". Whats the easiest way to do this? I have a going.js.rjs file which is below.
<div id="going"> <li><%= link_to_remote 'Not going!', :url => going_neighborhood_event_path(@event.user.neighborhood,@event), :method => :put if current_user == @event.user %></li> </div>