Routing Error
No route matches "/user/register" with {:method=>:get}
The URL is http://localhost:3000/user/register
Here is app/views/user/register.rhtml
<h2>Register</h2> <% form_for :user do |form| %> <fieldset> <legend>Enter Your Details</legend> <div class="form_row"> <label for="screen_name">Screen name:</label> <%= form.text_field :screen_name %> </div>
<div class="form_row"> <label for="email">Email:</label> <%= form.text_field :email %> </div>
<div class="form_row"> <label for="password">Password:</label> <%= form.password_field :password %> </div>
<div class="form_row"> <%= submit_tag "Register!", :class => "submit" %> </div> </fieldset> <% end %>
Also app/controllers/user_controller.rb
class UserController < ApplicationController
def index end def register @title = "Register" end end