开发者

Rails 3 file create getting permission denied error, using XP

开发者 https://www.devze.com 2023-04-04 05:20 出处:网络
I\'m working through Rails3inAction and cannot progress due t开发者_开发技巧o a permissions denied error.

I'm working through Rails3inAction and cannot progress due t开发者_开发技巧o a permissions denied error. The code is testing the processing of uploaded files through a separate files controller, relevant code is:

let(:asset) do
  ticket.assets.create(:asset => File.open(path))
end

When I run rspec, the error I'm getting is:

FilesController users without access cannot access assets in this project
 Failure/Error: ticket.assets.create(:asset => File.open(path))
 Errno::EACCES:
 Permission denied - C:/Documents and 
Settings/tick/public/system/assets/1/original/speed.txt

I suspect this is to do with windows XP and would appreciate any help!!


Turns out to be a Rails problem, not a Permissions problem at all!

0

精彩评论

暂无评论...
验证码 换一张
取 消