Place image in place of buttom in form_for

leesunset

New Member
Is it possible to replace the \[code\]f.submit\[/code\] button with an image? I'm making an up/down vote feature and would like there to be a thumbs up and down instead of a button that says Upvote/Downvote.Here's my code\[code\]<%= form_for [@song], :html => {:method => 'get'} do |f|%><%= form_for [@song], :html => {:method => 'get'} do |f|%> <%= f.hidden_field :name, {:value =http://stackoverflow.com/questions/13784410/> s.name} %><br> <%= f.hidden_field :party_id, {:value => s.party_id} %><br> <%= f.submit"Upvote", :class => "btn" %> <% end %><%= s.votes %> <%= form_for [@song], :html => {:method => 'get'} do |f|%> <%= f.hidden_field :name, {:value =http://stackoverflow.com/questions/13784410/> s.name} %><br> <%= f.hidden_field :party_id, {:value => s.party_id} %><br> <%= f.submit"Downvote", :class => "btn" %><% end %>\[/code\]
 
Back
Top