Re: [Rails] How to create a "like" button

2010-10-18 Thread Brett Thomas
AJAX - set the onClick property to point to a function that sends the request to the server. On Mon, Oct 18, 2010 at 7:25 AM, Christian Fazzini < christian.fazz...@gmail.com> wrote: > Ive got a like and video model. > > On a Video page, Users can click a link ("like") button which will > allow th

[Rails] How to create a "like" button

2010-10-18 Thread Christian Fazzini
Ive got a like and video model. On a Video page, Users can click a link ("like") button which will allow them to like a particular video. Since my like button/image comes in the form of a link and not an actual html form. How should this be implemented? Do I need to specify a ":method => puts" in