osem-fcy/app/controllers/conference_controller.rb
2014-07-01 21:52:33 +05:30

11 lines
316 B
Ruby

class ConferenceController < ApplicationController
def show
@conference = Conference.find_by_short_title(params[:id])
not_found unless @conference.make_conference_public?
end
def fetch_gallery_photos
@photos = Conference.find(params[:id].to_i).photos
render 'photos', formats: [:js]
end
end