Reputation: 26142
Hello I'm new to rails.
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?
Upvotes: 0
Views: 2685
Reputation: 1649
In the latest Rails the files should exist in one of the following...
app/assets
lib/assets
vendor/assets
If you cannot move the folder but still need it to be accessible you can use...
Rails.application.config.assets.paths << folder_path
Slightly more detailed answer over here...
Upvotes: 5
Reputation: 5193
you shouldn't put them in app/FOLDER
but in public/FOLDER
, everything going in public/
is public.
Here's an explaination of all the directories in a rails app : guides.rubyonrails.org
Upvotes: 0