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


#1

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

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


#2

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

On Jun 8, 10:57 am, Zhenning G. removed_email_address@domain.invalid