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:

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:

On 15 Jun 2008, at 19:41, Zangief I. wrote:

(http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html#M001036
)
but that don’t seems work…

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

Fred

Thank you! :slight_smile: