I finally got a chance to try to implement some simple ajax for a client, but have no idea where to start.
In my rails 3.1 app, my client wants to show a Like / Dislike poll.
It should show two links "Like" and "Dislike".
If a user clicks "Like", it would
- increment number_of_likes:integer in the database.
- display "You like this" under the links
- use a cookie to track their answer (so next tme they view the page it still says "You like this"
and, ideally, does this via ajax.