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

@ -3,7 +3,7 @@ class Photo < ActiveRecord::Base
belongs_to :conference
validates_presence_of :picture
has_attached_file :picture,
styles: { thumb: "100x100>", large: "300x300>", banner: "500x300>" }
styles: { thumb: "100x100>", large: "300x300>", banner: "600x300>" }
validates_attachment_content_type :picture,
content_type: [/jpg/, /jpeg/, /png/, /gif/],