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.
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

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

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]


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