Devise.router_name = MOUNT_POINT

163 views
Skip to first unread message

kadoudal

unread,
Feb 9, 2012, 12:42:21 PM2/9/12
to Devise
after updating my bundle , I get this warning in the console :

[Devise] We have detected that you are using devise_for inside engine
routes. In this case, you probably want to set Devise.router_name =
MOUNT_POINT, where MOUNT_POINT is a symbol representing where this
engine will be mounted at. For now, Devise will default the mount
point to :main_app.

as the only script I am using devise_for is in the routes.rb

I guess this message is related to devise_invitable ?

is there anything to do ? how do i get rid of this message ? modifying
any default ...


I am using devise (2.0.1) and devise_invitable (1.0.0)
environment : Rials 3.2.1 / Ruby 1.9.3

thanks for your feedback

lightyrs

unread,
Feb 17, 2012, 1:13:40 AM2/17/12
to plataforma...@googlegroups.com
Just put this in an initializer:

Devise.router_name = :main_app 

kadoudal

unread,
Feb 17, 2012, 5:23:32 PM2/17/12
to Devise
thanks I did it..., any place (link) to understand better why I
should do it ? ( Devise wiki is not so clear on it ...)
Reply all
Reply to author
Forward
0 new messages