Topic: whats the simplest way to password protect a controller
Just want simple password protection for the administrator part of my site.
Thank you.
You are not logged in. Please login or register.
Rails Forum - Ruby on Rails Help and Discussion Forum » Controllers and Views » whats the simplest way to password protect a controller
Just want simple password protection for the administrator part of my site.
Thank you.
acts_as_authenticated and before_filters.
Or I guess you could enable HTTP authentication on your web server for that particular directory.
thanks vin
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.
great.
I'm pretty new to RoR, I've been ussing the LoginEngine, works great
thanks for all the help, in the end i settled on logingenerator
http://wiki.rubyonrails.org/rails/pages
nGenerator
Hosting provided by aTech Media