Displaying 1 result from an estimated 1 matches for "superadminsessionscontroller".
2010 May 21
0
Authlogic and Single table inheritance
..._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::SuperadminSessionsController <
ApplicationController
layout ''superadmin''
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...