search for: websitenam

Displaying 1 result from an estimated 1 matches for "websitenam".

Did you mean: websitename
2006 Feb 25
0
Simple file upload help
...trying to implement the simple file upload example at http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles However, I''m getting an error "No such file or directory" when I submit the form... Errno::ENOENT in Admin/websites#create No such file or directory - /images/websites/websitename.jpg I believe it''s relating to the code in the model: def self.save(website) File.open("/images/websites/#{website[''name'']}.jpg", "w") { |f| f.write(website[''filename''].read) } end >From what I understand it is trying to op...