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