Routing Error: No routes matches “/user/sign_up”
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…….
Advertisement


N1yjv4 http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com