Sha256: 622d52051ebc35697fbe9ec96ba21f72448a066c11670b57eb63d0c7d2e9edbf
Contents?: true
Size: 789 Bytes
Versions: 4
Compression:
Stored size: 789 Bytes
Contents
================================================================ Please remember to: - Edit (if necessary) the migration - Run rake db:migrate; - Edit app/models/attachment.rb - Add in your models that need images/files one of this: - has_one_attachment :myfile - has_many_attachments :myfiles - Check/Add in account_access.rb - role.allow_all_actions "/backend/attachments" You can add some validations/processor in your models like: * attachment_styles_for :myfiles, :normal, "128x128!" * validates_attachment_presence_for :myfiles * validates_attachment_size_for :myfiles, :greater_than => 10.megabytes * validates_attachment_content_type_for :myfiles, "image/png" ================================================================
Version data entries
4 entries across 4 versions & 1 rubygems