% title "Sign up" %>
To get your token, join the Minecraft server (redstoner.com) and use the /token command.
<%= form_for @user do |f| %>| <%= f.label :ign, "Minecraft name" %> | <%= f.text_field :ign, placeholder: "Steve", pattern: "[a-zA-Z0-9_]{2,16}", required: true, title: "Your IGN" %> |
| <%= f.label :email, "Email" %> | <%= f.email_field :email, placeholder: "steve@example.com", required: true, pattern: ".+@.+", title: "enter valid email adress", "x-moz-errormessage" => "enter valid email adress" %> |
| <%= f.label :registration_token, "Token" %> | <%= text_field_tag :registration_token, nil, placeholder: "abcdef", required: true, pattern: "[a-z]{6}", title: "6 character token", "x-moz-errormessage" => "6 character token" %> |
| <%= f.label :password, "Password" %> | <%= f.password_field :password, placeholder: "secret", required: true, pattern: ".{8,}", title: "minimum 8 characters", "x-moz-errormessage" => "minimum 8 characters" %> |
| <%= f.label :password_confirmation, "Confirm" %> | <%= f.password_field :password_confirmation, placeholder: "secret", required: true, pattern: ".{8,}", title: "minimum 8 characters", "x-moz-errormessage" => "minimum 8 characters" %> |