Sha256: e0ad954c2847dce7c0badafa0050ca0f248ca748d642348c0a3adf7912f54519
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
class PersonSessionsController < Forgeos::ApplicationController def new @person_session = PersonSession.new end def create @person_session = PersonSession.new(params[:person_session]) if @person_session.save redirect_to_stored_location(:root) flash[:notice] = t('log.in.success').capitalize else flash[:error] = t('log.in.failed').capitalize redirect_to_stored_location({:action => new}) end end def destroy current_user_session.destroy flash[:notice] = I18n.t('log.out.success').capitalize redirect_to(:root) end end
Version data entries
4 entries across 4 versions & 1 rubygems