Want to replace your form submit button with an image? Boom.
1 2 3 4 5 6 7 8 | <%= form_tag :action => :update_user, :id => user %> <%= image_submit_tag "IMAGE_URL", :class => 'CLASS_NAME' %> <%= end_form_tag %> # will generate: # <form action="/update_user/1" method="post"> # <input class="CLASS_NAME" src="/images/IMAGE_URL" type="image" /> # </form> |