I was reading some articles and I came across this one in how to manage
the database.yml file when you have multiple developers. (To prevent
passwords and such being in SVN etc...)
<%= file = File.join(RAILS_ROOT, "config", "dblogin.yml")
IO.read(file) if File.exist?(file) %>
Firstly where I'm confused is the &login block (near login:) How is this
ever processes or passed info and subsequently where is it referenced?
Secondly the <<: notation. (I can't find anything explaining this in the
pickaxe book or online), but I bet I"m just missing it. What's it
The "ERB" part where it reads a file if it exists and adds the info in
this file TO the database.yml is pretty clear but why the login block
and the <<: ?