How can I secure static content in Rails 3? -


i have html user guide application. don't want not logged in able access it. using devise authentication , cancan authorization.

i store outside public folder , serve through simple controller performs authentication check. doing x-sendfile ( https://tn123.org/mod_xsendfile/ ) should minimize additional server load. here's rough guide: http://elivz.com/blog/single/mod_xsendfile/


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -