replace root path to Rails.root.to_s