search for: adminsessionscontrol

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

2010 May 21
0
Authlogic and Single table inheritance
...ect_to root_path else render :action => :new end end def destroy current_user_session.destroy flash[:notice] = t(''user_sessions.flash.destroy.notice'') redirect_to new_session_path end end class Admin::AdminSessionsController < ApplicationController layout ''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.f...