Displaying 6 results from an estimated 6 matches for "s3_credenti".
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
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
2009 Sep 10
2
Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch
...e_notice
@notice = Notice.create(params[:notice])
end
--Form
<%= form.file_field(:graphic) %>
--Graphic
class Graphic < ActiveRecord::Base
belongs_to :notice
attr_accessor :notice_id
has_attached_file :graphic,
:storage => :s3,
:s3_credentials => RAILS_ROOT + "/config/
s3.yml",
:path => ":attachment/:id/:style.:extension",
:bucket => "attachements"
end
Thanks!
2009 Sep 09
1
Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch Going Nuts!
...@notice = Notice.create(params[:notice])
end
--Form
<%= form.file_field(:graphic) %>
--Graphic
class Graphic < ActiveRecord::Base
belongs_to :notice
attr_accessor :notice_id
has_attached_file :graphic,
:storage => :s3,
:s3_credentials => RAILS_ROOT + "/config/s3.yml",
:path => ":attachment/:id/:style.:extension",
:bucket => "attachements"
end
Thanks!
-J
--~--~---------~--~----~------------~-------~--~----~
You received this message because...
2010 Aug 08
2
paperclip save to disk and s3
I have a standard Paperclip setup that saves a file to my disk. In
addition I would also like the file saved to my amazon s3 bucket.
[code]
after_save :copy_to_s3
def copy_to_s3
has_attached_file :photo,
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:styles => {
:thumb => "100x100#",
:small => "750x750>" }
end
[/code]
This is giving the error: undefined method `has_attached_file''
--
Posted via http://www.ruby-forum.com/.
--
You received...
2010 Oct 29
8
Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems
...e :storage => :s3 from the model.
My model looks like this:
---------
class EdTenEvent < ActiveRecord::Base
require ''aws/s3''
has_attached_file :photo,
:styles => { :thumb => "100x100#", :small => "150x150>" },
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:path => ":attachment/:id/:style.:extension",
:bucket => ''tenevent''
end
---------
When I create a new ''EdTenEvent'' the controller looks like this:
-----------
def create
@ed_ten_event...
2008 Sep 02
4
Attachment_fu, Paperclip, & S3
...ions => { :rotate => -90 }
Also, attachment_fu was really easy to set up with S3. I followed a
tutorial from Railsforum (1.), and got it working first time. I''ve read
through the Paperclip docs (2.), but I find the RDocs format to be
pretty inaccessible for a newbie (does ''+s3_credentials+'' equate to
:s3_credentials, as a symbol?), so I haven''t worked out how to use
Paperclip with S3 or found a tutorial from which I could probably learn
how to do so. Does anyone know, a) how to include the S3 options and
configure paperclip to send images over to S3, and, b) if...