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?
Rails.public_path should provide you the public path
Rails.public_path