Topic: Basic Routing Error

I know this is basic but i am still new at this.
I create a new model, view, and controller like i did for other section of my application but this one is giving me a Routing Error.

URL: http://localhost:3000/user


rake routes

user_index GET    /user(.:format)                     user#index
POST   /user(.:format)                     user#create
new_user GET    /user/new(.:format)                 user#new
edit_user GET    /user/:id/edit(.:format)            user#edit
user GET    /user/:id(.:format)                 user#show
PUT    /user/:id(.:format)                 user#update
DELETE /user/:id(.:format)                 user#destroy

app/models/user.rb

class User < ActiveRecord::Base
end

app/views/user/index.html.erb

<% @page_title = "Users" %>
This is the Users Page

app/controllers/usre_controller.rb

class UserController < ApplicationController
  def index
  end
end

error:
Routing Error

uninitialized constant UserController

Try running rake routes for more information on available routes.

Re: Basic Routing Error

moiseszaragoza wrote:

app/controllers/usre_controller.rb

Not sure if this is just a typo in your post, but it looks like your controller file name needs to be corrected.

Re: Basic Routing Error

Thanks good eye i was going crazy over that