KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the best way to get absolute path to the file inside the public folder in controller? Is there a predefined Rails variable that holds absolute path to the public folder? Currently I'm using File.expand_path('../../../public', __FILE__) , but I'm sure there's a nicer way of doing this.
Tags (comma-separated)
Save Edits
Cancel