How to customize tags in ruby on rails?

1

I have a form:

<% form_tag :action => 'validacao' do %>
      <p> Login: <%= text_field :acesso, :email %></p>
      <p> Senha: <%= password_field :acesso, :password %></p>
      <p><%= submit_tag 'Entrar' %></p>
<% end %>

How to set properties to class in text_field , password_field , and submit_tag ?

    
asked by anonymous 14.05.2015 / 22:34

1 answer

0

Thank you, but no more, I kept searching and found the answers right here:
Home Just use it as follows:

<% form_tag :action => 'validacao' do %>
<p class="form-inline"> Login: <%= text_field :acesso, :email, :class => "form-control" %></p>
  <p class="form-inline"> Senha: <%= password_field :acesso, :password, :class => "form-control" %></p>
  <p><%= submit_tag 'Entrar', :class => "btn btn-default" %></p>
<% end %>
    
14.05.2015 / 23:05