Class: StaticPagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/static_pages_controller.rb

Instance Method Summary collapse

Methods included from SessionsHelper

#preferences_customer_type=, #preferences_customer_type?, #signed_in?, #signed_in_user, #store_location

Instance Method Details

#aboutObject



18
19
# File 'app/controllers/static_pages_controller.rb', line 18

def about
end

#contactObject



21
22
# File 'app/controllers/static_pages_controller.rb', line 21

def contact
end

#helpObject



15
16
# File 'app/controllers/static_pages_controller.rb', line 15

def help
end

#homeObject



8
9
10
11
12
13
# File 'app/controllers/static_pages_controller.rb', line 8

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