how to use variable name with image tag
Posted
by drake
on Stack Overflow
See other posts from Stack Overflow
or by drake
Published on 2010-03-14T01:29:05Z
Indexed on
2010/03/14
1:35 UTC
Read the original article
Hit count: 302
ruby-on-rails
my controller uses code like this:
if params[:commit] == "Submit"
this used to work fine when I just had buttons. however, now I am using images as buttons like below:
<%= image_submit_tag 'butons/Add-08.png', :class => 'image-button-submit' %>
How can I pass the commit
variable with value Submit
along with this image_submit_tag
?
© Stack Overflow or respective owner