Sha256: 8859d93328aa497f46d267d2be8f432a720fa744e995b0c03de4131fa5ede5e6

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

class StaticPagesController < ApplicationController
  before_filter :signed_in_user, only: [:home]  
  #before_filter :authenticate_user!, only: [:home, :edit, :update, :destroy]  #devise
  skip_authorization_check :only => [:home]

  
  def home
    if signed_in?
      @micropost  = current_user.microposts.build
      @feed_items = current_user.feed.paginate(page: params[:page])
    end
  end

  def help
  end
  
  def about
  end
  
  def contact
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 app/controllers/static_pages_controller.rb
guara-0.0.1.rc app/controllers/static_pages_controller.rb