Displaying 1 result from an estimated 1 matches for "admin_dashboard_path".
2010 May 21
0
Authlogic and Single table inheritance
...9;admin''
def new
@user_session = UserSession.new
end
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
flash[:notice] = t(''user_sessions.flash.create.notice'')
redirect_to admin_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_admin_session_path
end
end
class Superadmin::Super...