I want to parse .csv file which is in public folder, I\'ve tried /../\'s, #{RAILS_ROOT}/public but with no success (No such file or direct
public
/../
#{RAILS_ROOT}/public
In Rails 4, Rails.public_path, like Rails.root, returns a stdlib Pathname object, so you can also use join with it:
Rails.public_path
Rails.root
join
Rails.public_path.join('filename.csv')