I need to add some class names to my form. I'm using Rails' form_for helper to do this. I've tried adding { :class => 'classname' } to no avail.
form_for
{ :class => 'classname' }
How can I add classes to this Rails helper output?
Try this:
form_for @order, :html => {:class => "foo"}