Skip to content

Instantly share code, notes, and snippets.

@thiagovsk
Created April 26, 2014 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagovsk/11328900 to your computer and use it in GitHub Desktop.
Save thiagovsk/11328900 to your computer and use it in GitHub Desktop.
form
<%= simple_form_for @usuarios do |f| %>
<%= f.input :nome, input_html: { class: 'special' } %>
<%= f.input :cpf, input_html: { maxlength: 11 } %>
<%= f.input :email %>
<%= f.input :login, input_html: { maxlength: 20 } %>
<%= f.input :senha, input_html: { maxlength: 12 } %>
<%=link_to raw("<i class=\"fa fa-plus-circle\"> Voltar "),
usuarios_path,
class: "btn btn-warning btn-small"%>
<%= button_tag :class => 'btn-success btn' , :id => 'criar-usuario' do %>
<i class='fa fa-plus-circle'></i> Cadastrar Usuário
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment