Leitner

S3_credentials:
       secret_key: Rails.secrets.aws_secret_key

Íàïðèìåð


> On 24 íîÿá. 2014 ã., at 4:42, Vitaly <notifications@github.com> wrote:
> 
> In app/models/card.rb:
> 
> > @@ -2,27 +2,57 @@ class Card < ActiveRecord::Base
> >    before_save :to_lowercase
> >  
> >    has_attached_file :image, styles: { original: "360x360>", thumb: "40x40>" },
> > -                            default_url: "/images/:style/missing.png"
> > +                            default_url: "/images/:style/missing.png",
> > +                            storage: :s3,
> > +                            s3_credentials: "#{Rails.root}/config/aws.yml"
> ÿ óæå ÷èòàë. åñëè äîáàâèòü
> 
>      s3:
>          bucket: asdas
>          access_key_id: asddas
> òî Rails.application.secrets.s3 âñå ðàâíî íå ðàáîòàåò, à åñëè äîáàâëÿòü äëÿ êàæäîé ìîäåëè Rails.application.secrets.bucket, Rails.application.secrets.access_key è ò.ä., òî êîäà ïîëó÷èòñÿ â 3 ðàçà áîëüøå. Ó ìåíÿ òîëüêî òàê ðàáîòàåò - 490222a
> 
> —
> Reply to this email directly or view it on GitHub.
>