Need to know how to use an image as a submit button

I have been searching around for a way to replace the ugly ‘submit’
button with a pretty graphic, and I cannot seem to get anything to
work. This has to be easier than it seems! An example would be much
appreciated.

A more elegant way is to change the look of the submit button using
css, for example, you could add a background image and remove the
default border and background color. By doing this you could still use
the helper.


James Chen

On Sep 18, 7:18 pm, explainer [email protected] wrote:

I have been searching around for a way to replace the ugly ‘submit’
button with a pretty graphic, and I cannot seem to get anything to
work. This has to be easier than it seems! An example would be much
appreciated.

I think you’re looking for image_submit_tag:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M001740

Jeff
purpleworkshops.com

rails has its image submit tag . you can have a look at
api.rubyonrails.org
or apidock.org for help

The image_submit_tag is exactly what I needed. Thanks a lot.