You need provide path for file.. if your file.pdf in /public you should do "/public/file.pdf", otherwise it will look for controller .. and throw route error..
This will work
You need provide path for file.. if your file.pdf in /public you should do "/public/file.pdf", otherwise it will look for controller .. and throw route error..
This will work
alexey.Creopolis wrote:
You need provide path for file.. if your file.pdf in /public you should do "/public/file.pdf", otherwise it will look for controller .. and throw route error..
This will work
On Sep 10, 9:32 pm, Sam Woodard <rails-mailing-l...@andreas-s.net>
I'm having similar problems.
I'm using link_to which points to a file, however it automatically inserts my :Controller into the url which I don't want.
Can anyone tell me how to stop the controller name from appearing?