Sha256: e3432c2e16ec5ded942b6b7ad911c07a695d5cbad95b3c05d4156617f92891a8
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
class Puffer::SessionsBase < ApplicationController unloadable pufferize! before_filter :require_puffer_user, :only => :destroy define_fieldset :create layout 'puffer_sessions' respond_to :html create do field :email, :type => :string field :password, :type => :password end def new # @record = UserSession.new end def create # @record = UserSession.new params[:user_session] # if @record.save # redirect_back_or_default puffer_root_url # else # render 'new' # end end def destroy # current_user_session.destroy # redirect_to new_puffer_session_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.29 | app/controllers/puffer/sessions_base.rb |