Add a class attribut into a form_tag

Hi, do you know how to add into this balise a class attribut:

  <% form_tag :action => 'search' do -%>

in order to do this in HTML:

  <form action="/people/search" method="post" class="foo">

I had try to use the official documentation (http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html#M001036) but that don't seems work...

Thanks :slight_smile:

It does if you read close enough :slight_smile: form_tag({:action => 'search'}, :class => 'foo') ...

Fred

Thank you! :slight_smile: