Sha256: 7c0fa09258c32b8be4c39773583e7e2d7429e2d3afddeea9cac065c12152d2e2

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

class Puffer::SessionsController < Puffer::SessionsBase
  unloadable
  # This is example session controller for puffer authentication.
  # You can define your own actions.
  # Also, you can redefine <tt>new<tt> action view as you wish,
  # but more effectively will be definig fields with standart
  # puffer DSL:
  #   create do
  #     field :login
  #     field :password
  #     field :remember_me
  #   end
  #
  # By default defined <tt>email<tt> and <tt>password<tt> fields.
  # If puffer can`t calculate field type, just set it manually.

  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

2 entries across 2 versions & 1 rubygems

Version Path
puffer-0.0.22 app/controllers/puffer/sessions_controller.rb
puffer-0.0.21 app/controllers/puffer/sessions_controller.rb