Module: Kinney::Concerns::Controllers::PagesController
- Extended by:
- ActiveSupport::Concern
- Included in:
- PagesController
- Defined in:
- lib/concerns/controllers/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
4 5 |
# File 'lib/concerns/controllers/pages_controller.rb', line 4 def about end |
#home ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/concerns/controllers/pages_controller.rb', line 7 def home # for the catch @people = Kinney::Person.with_images.with_top_pick_clip @top_pick_clips = Kinney::Clip.top_picks # featured clip @featured_clip = Kinney::Clip.where(:featured => true).limit(1).first if @featured_clip.blank? @featured_clip = @top_pick_clips.pop end @person = @featured_clip.people.first if @featured_clip # explore topics @topics_with_clips = Kinney::Topic.with_clips end |