Gallery initiated

This commit is contained in:
Gopesh Tulsyan 2014-06-30 19:24:26 +05:30
parent ef4aed5df0
commit 220e816155
7 changed files with 47 additions and 1 deletions

View file

@ -3,4 +3,9 @@ class ConferenceController < ApplicationController
@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