Rails 3 文件创建获取权限被拒绝错误,使用 XP
我正在使用 Rails3inAction,但由于权限被拒绝错误而无法进行。 该代码正在通过单独的文件控制器测试上传文件的处理,相关代码是:
let(:asset) do
ticket.assets.create(:asset => File.open(path))
end
当我运行 rspec 时,我得到的错误是:
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
我怀疑这与 Windows XP 有关,希望得到任何帮助!
I'm working through Rails3inAction and cannot progress due to 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!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
原来是 Rails 问题,根本不是权限问题!
Turns out to be a Rails problem, not a Permissions problem at all!