Joe Van D. wrote:
On 6/28/06, Joe Van D. [email protected] wrote:
I’m using mongrel, if it matters.
Say my public directory looks like:
What if I create a Rails controller named docs. It would have one
action, that would check to see if the requested file existed. If it
did, then it would render the requested file that’s in the public/docs
Does that make sense? Anyone think it’ll work?
It does not make any sense to add authentication for public folders
maybe I would suggest keep your html out of public and when a url is
called, fetch your file and send, it would be through some controller,
where you can have your before_filter or something.