Rails - Add style/image to button_to
Posted
by ChrisWesAllen
on Stack Overflow
See other posts from Stack Overflow
or by ChrisWesAllen
Published on 2010-03-08T01:16:20Z
Indexed on
2010/03/08
1:18 UTC
Read the original article
Hit count: 416
I'm developing in rails right now and I was wondering if there are any easy ways to add some style to the button_to control.
Can you add styling to the
<%= submit_tag 'Log in' %>
or
<%= button_to "Show Me", {:controller => 'personal', :action => "add" } %>
It would be great to change the color....But brownie point if someone can tell me how to make it an image
© Stack Overflow or respective owner