I have a rails app in which I have added a new asset. I have added a new folder named information
, in the assets folder, in which there is a PDF called xyz.pdf
.
The problem is that I am trying to make a link to that PDF, however the application throws up an error: No route matches [GET] "/assets/information/xyz.pdf"
I have added the new asset in the config/application.rb
file :
config.assets.paths << "#{Rails.root}/app/assets/information"
This is the link I am using :
<%= link_to "Information Pack", "assets/information/xyz.pdf", :class => "links" %>