<%= form_for @user, :url => '/user', :html => { :class => 'form-horizontal' } do |f| %>
Your new account
<%= f.label :nickname, :class => 'control-label' %>
<%= f.text_field :nickname, :class => 'text_field' %> <%= @user.errors[:nickname].first %>
<%= f.label :name, 'Real name', :class => 'control-label' %>
<%= f.text_field :name, :class => 'text_field' %>
<%= f.label :email, :class => 'control-label' %>
<%= f.text_field :email, :class => 'text_field' %>
<%= f.submit 'Create', :class => 'btn btn-primary' %>
<% end %>