Topic: How to pass CSS class to a 'button_to' ?

I tried to create a button and pass a CSS class to customize it but it doesnt work.
I did this >
   <%= button_to 'New Job', :controller => :jobs, :action => :new, :class => :login_button %>

Any suggestions how to pass the CSS class to the button ?

Re: How to pass CSS class to a 'button_to' ?

<%= button_to 'New Job', {:controller => :jobs, :action => :new}, :class => 'login_button' %>

Last edited by innu (2009-12-27 09:21:47)

Re: How to pass CSS class to a 'button_to' ?

Thanx!!