Staple size check error message appears twice
In redemption_image.rb,
class RedemptionImage < ActiveRecord::Base
belongs_to :business, :touch => true
has_attached_file :display_image, :url => "/system/:class/:attachment/:id_partition/:hash.:extension",
:hash_secret => "redemptionimagesqqqa"
validates_attachment :display_image, :content_type => { :content_type => /\Aimage/ }, :size => { :in => 0..300.kilobytes,
:message => "must be lesser than 300 KB. Image height and width must be lesser than 500 px." }
there is a check for size, content_type and availability for display_image. It displays the message twice: Error saving image: Image image must be less than 300KB. Image height and width must be less than 500 pixels. The displayed image must be less than 300KB. Image height and width must be less than 500 pixels.
If no customized message is configured, it blinks twice as shown
+3
source to share
No one has answered this question yet
See similar questions:
or similar: