
Untitled
By: a guest on
May 6th, 2012 | syntax:
None | size: 0.45 KB | hits: 11 | expires: Never
Is there a way I can control the class of the button using button_to?
<%= button_to "Hello", :action => :new, :class => "btn primary" %>
<%= button_to("Hello", { :action => :new, :class => "btn primary" }) %>
<%= button_to "Hello", { :action => :new }, :class => "btn primary" %>
<%= button_to "Hello", new_hello_path, :class => "btn primary" %>
<%= button_to 'New Job', {:controller => :jobs, :action => :new}, :class => 'btn primary' %>