Multiple ajax calls fixed
This commit is contained in:
parent
220e816155
commit
1244f937e6
8 changed files with 18 additions and 7 deletions
|
|
@ -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/],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue