[Rails] rspec for uploading an image using yml file
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home