I've added this line <p><%= link_to 'Download My Resume', "resume.pdf", { :class=>"btn btn-default btn-lg" } %></p>
to my html.erb, the link works perfectly on my local server but when I deploy it to my aws server, the webpage cannot be opened.
error message in logs:
ActionController::RoutingError (No route matches [GET] "/resume.pdf"):
I'm using Rails 5.1.6. I've already set config.public_file_server.enabled = true
I'm pretty perplexed on what's going on, would appreciate some help. I do not want to use any pdf gem.
Thanks!