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
Post a Comment