« Drawn to the Mike | Main | Erlang Blogging Contest »

April 30, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451c41c69e200d834fae6ca53ef

Listed below are links to weblogs that reference Prompting for Rails Database Password:

Comments

clem

Thanks, PragDave! It had nothing to do with passwords in my case, but your exposition of the config - yaml - erb connection just broke a huge logjam for me and saved me a ton of parser writing and dsl wheel reinvention.

Mike

I have also done things like putting passwords in a file and then running crypt it. (vi -x etc.) then before the script is started, it asks for the decrypt password and all relevant info can be decrypted. You could do the same in ruby and when rails start you could supply the password on the startup commandline..

not bulletproof but it puts another layer of protection.

twifkak

Ooh! I like the use of line-modifying ensure. (Assuming Kernel#` is guaranteed not to raise.)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Now in Beta

  • Programming Ruby, 3rd Edition
    Third Edition, Covering Ruby 1.9, now available
My Photo

Pragmatic Stuff

Photos

  • www.flickr.com
    This is a Flickr badge showing public photos from pragdave tagged with pragdave_badge. Make your own badge here.

Site Search

  • Google Search

    The web
    PragDave