In my model pin.rb
has_attached_file :image, styles: { medium: "320x240>"}
In pin.html.erb
<td><%= image_tag pin.image(:medium) %></td>
When I upload an image it gives
No File Chosen Paperclip::Errors::NotIdentifiedByImageMagickError
However when I remove "styles..." from pin.rb and '(:medium) from pin.html it works fine. I want the image size to be adjusted though.
What am I doing wrong?