search for: new_superadmin_session_path

Displaying 1 result from an estimated 1 matches for "new_superadmin_session_path".

2010 May 21
0
Authlogic and Single table inheritance
...ate.notice'') redirect_to superadmin_dashboard_path else render :action => :new end end def destroy current_user_session.destroy flash[:notice] = t(''user_sessions.flash.destroy.notice'') redirect_to new_superadmin_session_path end end I would like to allow users to login, but only with the good controller and model. For instance, if an admin want to log in, its controller should be Admin::AdminSessionsController (handled Admin model). But I don''t want that, a user connect itself using another interfa...