Passing parameters by clicking on images in ruby on rails on click -
i developing ruby on rails application hackathon , stuck in part of creating like/dislike option. basically, have 2 images , on clicking 1 of them string, lets "a" should passed next page. if other image clicked, "b" should passed.i have no previous ruby on rails experience. please reply this? grateful.
this more of html question ruby. can utilize html tag accomplish this
<a id="like" href="http://somewhere.com/like?q=1"> </a>
then in css can style ever image want displayed.
if dynamically, can utilize javascript click handler , request appropriate controller
ruby-on-rails ruby image
No comments:
Post a Comment