Forum: Rails-ES Cambiar un boton por imagen

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mauricio D. (Guest)
on 2009-02-01 16:54
(Received via mailing list)
Hola, me gustaría saber como puedo hacer para cambiar un botón por una
imagen especifica

ejemplo
<%= submit_tag 'cualquiera' %>
<%= submit_img 'cualquiera' %>

gracias
Andrés G. (Guest)
on 2009-02-01 22:29
(Received via mailing list)
Prueba a ver:

  image_submit_tag("search.png", :class => 'search-button', :alt =>
'Texto alternativo')
  # => <input class="search-button" src="/images/search.png"
type="image" />

Aquí tienes más info [1]

[1]
http://apidock.com/rails/ActionView/Helpers/FormTa...



2009/2/1 Mauricio D. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.