gauge/app/controllers/home_controller.rb

15 lines
300 B
Ruby
Raw Normal View History

2015-10-06 15:21:46 +03:00
class HomeController < ApplicationController
def index
end
2015-10-06 21:37:53 +03:00
def ratings
@talks = Talk.ordered_by_rating
@ratings = Ratings.new
2016-10-06 20:30:28 +03:00
@votes_count = TalkPreference.this_years.count
2015-10-06 21:37:53 +03:00
end
2015-10-13 14:34:45 +03:00
def export
@talk_preferences = TalkPreference.this_years.eager_load(:selected_talks)
2015-10-13 14:34:45 +03:00
end
2015-10-06 15:21:46 +03:00
end