Password Protection

I want a really quick and easy way to password protect a directory in my
rails app.

Does anyone have any really quick/easy ideas or maybe a tutorial that I
could use as example?

Thanks!

Mason K…

Mason K. wrote:

I want a really quick and easy way to password protect a directory in my
rails app.

Does anyone have any really quick/easy ideas or maybe a tutorial that I
could use as example?

Thanks!

Mason K…

I’d recommend ‘Simple HTTP Auth’ if you just want an ultra-simple
authentication system for protecting a couple of controllers

http://www.agilewebdevelopment.com/plugins/simple_http_auth

I’ve used a few times and it works like a dream - great for all those
occasions when you just want to block a directory off like you would do
with a .htaccess

Hope it helps,
Chris