I have a rails 3.1 app and I am curious how you would do something.
I have a link_to remote option true button
<%=link_to "Add to your Favorites",
add_favorite_url(movie_star),:class=>"btn small primary" %>
I need to submit this to the users controller via ajax do some stuff
then set the button to say
that the favorite has been added.
Can you please tell me how you would accomplish this
I have a method