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
|
2016-10-07 00:41:10 +03:00
|
|
|
@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
|