Multiple ajax calls fixed

This commit is contained in:
Gopesh Tulsyan 2014-06-30 20:32:34 +05:30
parent 220e816155
commit 1244f937e6
8 changed files with 18 additions and 7 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>' }
styles: { thumb: "100x100>", large: "300x300>", banner: "500x300>" }
validates_attachment_content_type :picture,
content_type: [/jpg/, /jpeg/, /png/, /gif/],