Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Henrik Nyh's latest activity

Thursday, February 25 2010
4052 ActiveSupport breaks literal "%%" in non-hash String interpolation was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 12:28 PM

    Monkeypatch initializer until this is applied: http://gist.github.com/314504

  • Henrik Nyh
    • Tag changed from string interpolation, activesupport, active_support, interpolation, ruby1.9 to string interpolation, activesupport, active_support, interpolation, patch, ruby1.9
    by Henrik Nyh at 11:47 AM

    When I run the tests, it seems the i18n gem is used for the actual interpolation. Apparently this issue has been fixed in the i18n gem on GitHub (http://github....

  • Henrik Nyh
    Henrik Nyh commented at 11:10 AM
  • Henrik Nyh
    Henrik Nyh created the ticket at 11:09 AM

    This works in regular Ruby 1.8 IRB:

    >> "%d%%" % 123
    => "123%"
    

    But with ActiveSupport:

    >> "%d%%" % 123
    ArgumentError: one hash required
    

    It seems ActiveSuppor...

3267 Problem with String Interpolation breaks WWW::Mechanize was updated in Ruby on Rails
Monday, February 08 2010
3877 E.g. "rails server -e test" doesn't work, "RAILS_ENV=test rails server" does was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 8:54 PM

    Nice!

    Haven't tried the patch yet, but just reading the diff, I'm thinking
    it may reactivate the bug (#3874) with double help banners. Basically,
    calling "optio...

Saturday, February 06 2010
3877 E.g. "rails server -e test" doesn't work, "RAILS_ENV=test rails server" does was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 12:26 PM

    Okay, so this is due to Rails.env caching its results in @_env.

    When starting a server, config/application.rb:6 in my freshly generated app calls Rails.env:

    Bu...
  • Henrik Nyh
    Henrik Nyh created the ticket at 12:14 PM

    Looks like "railties/lib/rails/commands/server.rb" successfully sets RAILS_ENV to "test" when doing "rails server -e test", but Rails.env is still set to develo...

3874 "rails server --help" shows help twice and without "server" in usage was updated in Ruby on Rails
  • Henrik Nyh
    • Tag changed from docs, generators, rails3, railties, server to docs, generators, patch, rails3, railties, server
    by Henrik Nyh at 11:55 AM

    Okay, fixed it.

    The "usage" bit was easy. The double banner was a tiny fix but took me way too long to figure out :)

  • Henrik Nyh
    Henrik Nyh commented at 10:08 AM

    Figured it'd be a quick fix for someone more familiar with this, but sure, I'll give it a shot :)