Undefined method 'new_user_session_path'

1,036 views
Skip to first unread message

knirirr

unread,
Feb 15, 2011, 6:11:52 AM2/15/11
to Devise
I'm trying to set up a new Rails (3.0.4) app using the following gems/
versions, having followed the documentation at https://github.com/plataformatec/devise#readme:

mongo_mapper 0.8.6
devise 1.1.5
mm-devise 1.1.10

Attempting to access users/sign_up gives an error that
new_user_session_path is undefined; this is being called from one of
the views provided in the devise gem.

Looking at the routes, I can see:

/users
/users/password/*
/users/sign_up
/users/edit
/users/confirmation/*
/users/unlock/*

Should there be more than this, e.g. a "sessions" route, or is
something else wrong? I'd be grateful if anyone might indicate how to
sort this out.

José Valim

unread,
Feb 15, 2011, 6:14:16 AM2/15/11
to Devise
How are you calling devise in your model? Have you added
database_authenticatable?

On Feb 15, 12:11 pm, knirirr <knir...@gmail.com> wrote:
> I'm trying to set up a new Rails (3.0.4) app using the following gems/
> versions, having followed the documentation athttps://github.com/plataformatec/devise#readme:
Message has been deleted

knirirr

unread,
Feb 15, 2011, 7:03:02 AM2/15/11
to Devise


On Feb 15, 11:14 am, José Valim <jose.va...@gmail.com> wrote:
> How are you calling devise in your model? Have you added
> database_authenticatable?

Further reading shows my error - that of being unable to spell, it
would seem. Thus all is now fixed correcting the spelling of
database_authenticatable.
Thanks!

Hiten Parmar

unread,
Jan 22, 2013, 8:22:57 PM1/22/13
to plataforma...@googlegroups.com
I'm trying to implement a custom strategy based on Authenticatable (it will try a webservice, then try a legacy table). However, I'm getting this error. How can make sure that routes for user_sessions are created with my authentication strategy?

Thanks!

Hiten Parmar

unread,
Jan 22, 2013, 9:57:55 PM1/22/13
to plataforma...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages