Hi

here is my attached file code

  #Files attached to channels
   has_attached_file :logo,
      :styles => { :small_thumb => [ "64x44#", :jpg ],
      :large_thumb => [ "81x81#", :jpg ]},
    :storage => :s3,
    :path => ":attachment/:id/:style.:extension",
    :s3_credentials => open( "#{RAILS_ROOT}/config/s3.yml", 'r' ),
    :s3_permissions => 'public-read',
    :bucket => ApplicationConfig[ 's3_buckets' ][ 'channels' ][ 'logo' ],
    :default_url => "/images/missing/channels/logo/:style.gif"


Thanks,
Sandip R~

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to