On Nov 13, 2007 8:17 PM, Stephen Touset <[EMAIL PROTECTED]> wrote:
> Reading the Rails commit logs, I see that db/schema.rb's purpose has
> been clarified. It's intended to be the authoritative location for
> your database schema, and rake tasks like db:reset use it to rebuild
> the schema rather
I ran into a case where I needed to merge an array of hashes and was
disappointed that I couldn't use ActiveSupport's Enumerable#sum
extension solely for want of Hash#+ ... so I added it as an alias to
Hash#merge for fun.
Given:
a = {:a => 1, :b => 2}
b = {:b => 3, :c => 4}
c = {:a => 2, :
A while back I tripped over a case where ActionController flakes when
handed a dotted-quad hostname behaves oddly; it (properly) asserts
that the domain name is nil, but happily tells you the subdomains are
the first two quads. Like so:
> console
>> @request = ActionController::TestRequest.new
=>