Skip to content
Snippets Groups Projects
Commit 14ba8915 authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

change image size

parent 6caf44e2
No related branches found
No related tags found
No related merge requests found
class Carousel < ActiveRecord::Base
has_attached_file :image, styles: {
larger: "400x500>",
larger: "600x600>",
thumbnail: "100x100>"
}, default_url: "/images/:style/missing.png"
validates_attachment_content_type :image, content_type: /\Aimage\/.*\Z/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment