use Rails.root instead of hardcoded path