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
The image_submit_tag is exactly what I needed. Thanks a lot.