Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

amazon s3 - uninitialized constant AWS::S3::NoSuchBucket -


i using rails 3 following code...

config.gem "aws-s3", :version => ">= 0.6.2", :lib => "aws/s3" config.gem 'right_aws', :version => '2.0.0' 

model.rb

has_attached_file :video,                        :storage => :s3,                       :s3_credentials => "#{::rails.root.to_s}/config/s3.yml",                       :path => ":attachment/:id/:style/:basename.:extension"                      # paperclip validations                     validates_attachment_presence :video                     validates_attachment_content_type :video, :content_type => ['application/x-shockwave-flash', 'application/x-shockwave-flash', 'application/flv', 'video/x-flv'] 

s3.yml

development:   bucket_name: tekbookvideo   access_key_id: xxxx   secret_access_key: yyyy production:   bucket_name: tekbookvideo   access_key_id: xxxx   secret_access_key: yyyy 

and getting uninitialized constant aws::s3::nosuchbucket error...

i not know anymore...

i encountered problem , experienced large headache on it. eventual solution log in amazon , create new bucket. set name of bucket in model parameter so...

has_attached_file :video,   :storage => :s3,   :bucket => 'bucketname',   ... 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -