@@ 85-87 (lines=3) @@ | ||
82 | @sessions = Event.current_event.sessions.all.order('lower(title) asc') |
|
83 | render :layout => 'export' |
|
84 | end |
|
85 | ||
86 | def popularity |
|
87 | @sessions = Event.current_event.sessions.with_attendence_count.all.order("COALESCE(attendence_count, 0) desc") |
|
88 | render :layout => 'export' |
|
89 | end |
|
90 |
@@ 51-53 (lines=3) @@ | ||
48 | ||
49 | private |
|
50 | ||
51 | def session_params |
|
52 | params.require(controller_name.singularize).permit(:title, :description, :summary, :level_id, :room_id, :timeslot_id, :category_ids => []) |
|
53 | end |
|
54 | ||
55 | ||
56 | def load_sessions |