gauge/app/controllers/home_controller.rb

19 lines
365 B
Ruby
Raw Permalink 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
2016-10-10 00:20:20 +03:00
def summary
@summary = Summary.new params[:summary]
end
2015-10-06 15:21:46 +03:00
end