Increased size of modal, added description as caption to photos

This commit is contained in:
Gopesh Tulsyan 2014-07-02 00:25:09 +05:30
parent bea55454b2
commit 3bf54f991a
7 changed files with 22 additions and 8 deletions

View file

@ -4,8 +4,8 @@ class ConferenceController < ApplicationController
not_found unless @conference.make_conference_public?
end
def fetch_gallery_photos
@photos = Conference.find(params[:id].to_i).photos
def gallery_photos
@photos = Conference.find_by_short_title(params[:id]).photos
render "photos", formats: [:js]
end
end