Forum: Rails-ES Cambiar un boton por imagen

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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

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

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]


2009/2/1 Mauricio Dulce <>
This topic is locked and can not be replied to.