<h1> Sign Up </h1> <% if false %> <%= form_for :user do |f| %> <p> <%= f.label :name %><br> <%= f.text_field :name %> </p> <p> <%= f.label :email %><br> <%= f.text_field :email %> </p> <p> <%= f.label :user_name %><br> <%= f.text_field :user_name %> </p> <p> <%= f.label :password %><br> <%= f.password_field :password %> </p> <p> <%= f.label :password_confirm %><br> <%= f.password_field :password_confirmation %> </p> <p> <%= f.submit %> </p> <% end %> <% end %> <form accept-charset="UTF-8" action="/users" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="6WQoPLFISlDYCsi4LhAgT0hgrht19yydD3w5TlKfb7I=" /></div> <p> <label for="user_name">Name</label><br> <input id="user_name" name="user[name]" type="text" /> </p> <p> <label for="user_email">Email</label><br> <input id="user_email" name="user[email]" type="text" /> </p> <p> <label for="user_user_name">User name</label><br> <input id="user_user_name" name="user[user_name]" type="text" /> </p> <p> <label for="user_password">Password</label><br> <input id="user_password" name="user[password]" type="password" /> </p> <p> <label for="user_password_confirm">Password confirm</label><br> <input id="user_password_confirmation" name="user[password_confirmation]" type="password" /> </p> <p> <input name="commit" type="submit" value="Save User" /> </p> </form> <%= link_to 'Already Have an Account? Log in', new_session_path, :class => "btn btn-warning btn-lg" %>