Rails 3.1 将文件夹设为公开 [英] Rails 3.1 make folder to be public
本文介绍了Rails 3.1 将文件夹设为公开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我是 Rails 新手.
Hello I'm new to rails.
在我的 RoR 应用程序文件夹中,我有一个要公开的文件夹 (app/FOLDER
)(有些脚本文件需要从浏览器中获取),我该怎么做?
In my RoR app folder I have a folder (app/FOLDER
) that I want to make public (there are script files that need to avaliable from browser), how can I do this?
推荐答案
你不应该把它们放在 app/FOLDER
中,而是在 public/FOLDER
中,一切都在public/
是公开的.
you shouldn't put them in app/FOLDER
but in public/FOLDER
, everything going in public/
is public.
以下是 Rails 应用程序中所有目录的说明:guides.rubyonrails.org
Here's an explaination of all the directories in a rails app : guides.rubyonrails.org
这篇关于Rails 3.1 将文件夹设为公开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文