osem-fcy/app/controllers/conference_controller.rb

12 lines
370 B
Ruby
Raw Normal View History

class ConferenceController < ApplicationController
def show
@conference = Conference.find_by_short_title(params[:id])
redirect_to root_path, notice: "Conference not ready yet!!" unless @conference.make_conference_public?
end
2014-06-30 19:24:26 +05:30
def gallery_photos
@photos = Conference.find_by_short_title(params[:id]).photos
2014-06-30 20:32:34 +05:30
render "photos", formats: [:js]
2014-06-30 19:24:26 +05:30
end
end