Sha256: 72c79795541b9b60e8df53a50a21a01e124aa7ed890b538c7d587a879f271d1c

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 Bytes

Contents

class RootController < ApplicationController

  def index
  end

  def login
    cookies[ :login ] = { :value => true, :expires => 10.years.from_now }
    redirect_to :action => :index
  end

  def logout
    cookies.delete( :login )
    redirect_to :action => :index
  end

  def admin
    redirect_to root_path
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
report_cat-5.0.3 spec/dummy/app/controllers/root_controller.rb
report_cat-5.0.2 spec/dummy/app/controllers/root_controller.rb
report_cat-5.0.1 spec/dummy/app/controllers/root_controller.rb
report_cat-5.0.0 spec/dummy/app/controllers/root_controller.rb
report_cat-0.2.0 spec/dummy/app/controllers/root_controller.rb