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.
9836c02b593eb492ca318c6bf04efc8b?d=identicon&s=25 Mauricio Dulce (Guest)
on 2009-02-01 15: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
Adce10d7f1dbabcdab8f525a59cec32f?d=identicon&s=25 Andrés Gutiérrez (andresgutgon)
on 2009-02-01 21: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 Dulce <mauricio.dulce@gmail.com>
This topic is locked and can not be replied to.