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 http://ashchan.com/ On Sep 19, 8:18 am, explainer <keburg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.
On Sep 18, 7:18 pm, explainer <keburg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 On Sep 19, 6:18 am, explainer <keburg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.
The image_submit_tag is exactly what I needed. Thanks a lot. On Sep 18, 10:02 pm, Jeff <cohen.j...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sep 18, 7:18 pm,explainer<keburg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.h... > > Jeff > purpleworkshops.com