In models/attach.rb

has_attached_file :file,
:styles => {:resized => "100x100>", :iphone => "480x320>", :ipad =>
"1024x768>"}, :storage => :s3, :s3_credentials =>
"#{Rails.root}/config/s3.yml", :path =>
":attachment/:id/:style.:extension", :bucket =>
'observation_caseronpromo'

I do not know how to write the rspec for uploading an image using
rails 3.1.3 version. The above codes are used to upload s7.yml file.
So please help me out.

Thanks in advance,
M.Dhiviya

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 23, '12 at 12:28p
activeJan 23, '12 at 12:28p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Dhiviya: 1 post

People

Translate

site design / logo © 2022 Grokbase