mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-13 18:55:45 -04:00
22 lines
514 B
Ruby
22 lines
514 B
Ruby
class HomeController < ApplicationController
|
|
skip_authorize_resource
|
|
|
|
def index
|
|
# for the stats partial
|
|
@member_count = Member.confirmed.count
|
|
@crop_count = Crop.count
|
|
@planting_count = Planting.count
|
|
@garden_count = Garden.count
|
|
|
|
@recent_crops = Crop.recent.limit(12)
|
|
@plantings = Planting.interesting(4)
|
|
@seeds = Seed.interesting(6)
|
|
@members = Member.interesting(6)
|
|
|
|
respond_to do |format|
|
|
format.html # index.html.haml
|
|
end
|
|
end
|
|
|
|
end
|