Skip to content

Routing Error: No routes matches “/user/sign_up”

07/03/2011

Recently i faced error Routing Error: No routes matches “/user/sign_up” .

i missed sign up link in my routes has only sign in and sign out

i got solution for that.

i missed  authenticatable, registerable in my routes. jest include that in user file

$ gedit app/models/user.rb


devise :authenticatable, :registerable,:database_authenticatable,  :recoverable, :rememberable, :trackable, :validatable

$ gedit db/migrate/…..create_user.rb


def self.up
 create_table(:users) do |t|
 t.database_authenticatable :null => false
 t.recoverable
 t.rememberable
 t.trackable
 t.timestamps
 t.authenticatable
 t.registerable
 end

now check routes

$ rake routes

it shows user registration link like as

now i can user sign up in my application.

thanks…….

Advertisements

From → Rails

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: