Topic: whats the simplest way to password protect a controller

Just want simple password protection for the administrator part of my site.

Thank you.

Re: whats the simplest way to password protect a controller

acts_as_authenticated and before_filters.

Or I guess you could enable HTTP authentication on your web server for that particular directory.

vinnie - rails forum admin

Re: whats the simplest way to password protect a controller

thanks vin

Re: whats the simplest way to password protect a controller

Check out http://wiki.rubyonrails.org/rails/pages/Authentication for some ideas on how to solve this.  I'm using some code from Rails Recipes for user-based authentication in my application; I'd recommend checking that book out too.

Re: whats the simplest way to password protect a controller

great.

Re: whats the simplest way to password protect a controller

I'm pretty new to RoR, I've been ussing the LoginEngine, works great

Re: whats the simplest way to password protect a controller

thanks for all the help, in the end i settled on logingenerator
http://wiki.rubyonrails.org/rails/pages … nGenerator