Displaying 1 result from an estimated 1 matches for "57x57".
Did you mean:
5757
2010 Mar 17
3
Associating a default paperclip image from a different model
Here''s some code, this is my NewsItem model as you can see...
class NewsItem < ActiveRecord::Base
belongs_to :country
has_attached_file :image, :styles => { :original => ''57x57'' },
:default_url => ''/images/football.png''
# has_attached_file :image,
# :styles => { :original => ''57x57'' },
# :default_url => self.country.flag.url
validates_attachment_content_type :image...