mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-28 19:51:57 -04:00
24 lines
536 B
Ruby
24 lines
536 B
Ruby
class HomeController < ApplicationController
|
|
skip_authorize_resource
|
|
|
|
def index
|
|
@member_count = Member.confirmed.count
|
|
@crop_count = Crop.count
|
|
@planting_count = Planting.count
|
|
@garden_count = Garden.count
|
|
|
|
@member = current_member
|
|
|
|
@recent_crops = Crop.recent.limit(12)
|
|
@seeds = Seed.tradable.limit(6)
|
|
|
|
# choose 6 recently-signed-in members sort of at random
|
|
@interesting_members = Member.interesting(6)
|
|
|
|
respond_to do |format|
|
|
format.html # index.html.haml
|
|
end
|
|
end
|
|
|
|
end
|