Hi
I have problem with this function:
def download
begin File.readable?(path) -> true
File.file?(path) -> true
path = "/path/hej.pdf" send_file path
end
Log gives me
Processing ContentsController#download (for 192.168.0.6 at Tue Dec 07
23:05:17 CET 2004)
Parameters: {"action"=>"download",
"id"=>"1",
"controller"=>"contents"}
Completed in 0.000705 (1418 reqs/sec)
Streaming file /path/hej.pdf
Id will be used later so it just exists, not a point.
Page looks like this ofcourse :)
Application error (Apache)
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html
Any clue?
Is there any particular area i should place my pdf/any files i want to
be shared on web page ?
Create some sub directory in public ?
Thanks for help
Jacek Balcerski