Sha256: 3d813840690b1fa6c889e1a888e352242d4ee953f951809d14d08311e3712cd4
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
module Kinney class PagesController < KinneyController caches_action :about, :home def about end def home # for the catch @people = Person.with_images.with_top_pick_clip @top_pick_clips = Clip.top_picks # featured clip @featured_clip = 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 = Topic.with_clips end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.3 | app/controllers/kinney/pages_controller.rb |
kinney-0.0.2 | app/controllers/kinney/pages_controller.rb |
kinney-0.0.1 | app/controllers/kinney/pages_controller.rb |