Why can't I add a :class to text_field?

<%= text_field_tag ‘login’ ,nil, {:class => ‘line’} %>
the old way work.

<%= f.text_field :login, :class => ‘line’ %>
but why this doesn’t.

What is ‘f’ ? form_tag or field_tag for which object?

On Jun 8, 10:57 am, Zhenning G. [email protected]