Adding a class to a generated input field

That should do it:

  text_field_tag :name, params[:name], :class => "field"

Stefan