bradpauly.com

Configuration and Authentication

September 18, 2008

It’s Wednesday night, my GF has major corporate happenings going on, I’m watching some Railscasts and Battlestar Galactica on the Apple TV, I’m drinking some wine… You get the idea, code is being written. I’m doing some cleanup on Luna. I’m changing the authentication so it uses authenticate_or_request_with_http_basic. A nicely descriptive, albeit not short, method name. I’m also moving constants out of environment.rb and into a a YAML file, called luna.yml. Both of these changes come from Railscasts.

HTTP Basic Authentication

YAML configuration file

The HTTP authentication simplifies what was already a simple authentication scheme and the YAML config is a great way to organize application specific settings.

Great stuff from from Ryan Bates and Railscasts.

Comments Add a Comment