osem-fcy/app/controllers
Asish Kumar fae6332c36 Stop offering the schedule page when no schedule is published
The home and splash page render a link to the schedule based purely on
the `schedule_public` flag, even when an admin has not yet selected a
schedule or scheduled any events. Following that link rendered the
schedule view, which then failed inside `_carousel.html.haml` because
`@rooms` (and the selected schedule) had no data — a 500 error instead
of a graceful response.

Treat `schedule_public` as an allowance rather than an unchecked
control: introduce `Program#any_published_schedule?` (true only when
the flag is on *and* there is at least one event in a selected
schedule) and use it to decide whether to render the link from the
home and splash pages. The schedule controller now returns 404 when no
event has been scheduled, so bookmarked URLs surface as "not found"
instead of an internal server error.
2026-05-14 09:28:58 +05:30
..
admin Fix parameter generation for activating a schedule 2026-03-18 13:11:17 +01:00
api Required changes for consistent controller & feature results 2018-11-20 17:30:56 -08:00
users fixes redirect loop 2019-12-20 08:26:22 -05:00
application_controller.rb Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
booths_controller.rb Fix too loose strong Booth parameters 2026-03-18 12:18:10 +01:00
commercials_controller.rb Skip CSRF authenticity 2019-05-24 14:08:23 +02:00
conference_registrations_controller.rb Fix too loose registration strong parameters 2026-03-18 12:20:20 +01:00
conferences_controller.rb Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
confirmations_controller.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
openids_controller.rb s/redirect_to :back/redirect_back/ 2019-05-05 09:40:50 +02:00
payments_controller.rb Rubocop autocorrections 2018-11-16 09:06:05 -08:00
physical_tickets_controller.rb Rubocop autocorrections 2018-11-16 09:06:05 -08:00
proposals_controller.rb Do not require programs languages in controller 2024-07-01 14:23:08 +02:00
registrations_controller.rb Fix registration form 2022-03-02 17:59:30 +01:00
schedules_controller.rb Stop offering the schedule page when no schedule is published 2026-05-14 09:28:58 +05:30
subscriptions_controller.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
surveys_controller.rb Show feedback upon survey response 2022-03-16 14:12:01 -07:00
ticket_purchases_controller.rb Remove unused ticket_purchase_params 2026-03-17 15:59:02 +01:00
tickets_controller.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
tracks_controller.rb 👋 update_attributes 2022-02-23 14:36:05 +01:00
users_controller.rb Fix selectized users on booth/proposal forms 2022-03-03 16:48:49 +01:00