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.

Balazs Nagy's latest activity

Tuesday, February 23 2010
4041 rails3 console broken under osx-x was updated in Ruby on Rails
  • Balazs Nagy
    • Tag changed from error, rails3, rails_generator, ruby1.9.2 to error, ruby1.9.2
    by Balazs Nagy at 1:20 PM

    a) this is not OSX-specific
    b) this is not rails-specific

    It is ruby 1.9-specific: if you remove the bundled rubygems files (.../lib/ruby/1.9./rubygems) after i...

Friday, February 19 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
Monday, February 15 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 10:17 PM

    The patch was not added yet. Good. I was not satisfied with the patch myself too: it was not aware of inherited resources:

    resources :a do
      resources :b, :sha...
Saturday, February 13 2010
3947 incompatible character encodings: UTF-8 and ASCII-8BIT for Rails 3 was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 8:15 PM

    sqlite3-ruby is not yet upgraded to support ruby 1.9. There is, however, a ticket by sqlite3-ruby's developer to get some updates to ActiveRecord's sqlite3 inte...

3951 In the new router, "can't use member outside resources scope" was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 8:08 PM

    Why do you want to add a member to a single resource? Members expect that you want to reference of a resource by ID.

    You can create extra routes for a resource ...

Friday, February 12 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 2:24 PM

    Sure. It's attached. I learned the usage of git from git developers, and they have strict rules about the subject: put refactoring, failing tests, and solutions...

Tuesday, February 09 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 5:26 PM

    Hmm. Here's the meat.

  • Balazs Nagy
    Balazs Nagy commented at 5:26 PM

    Here it comes. I know it's not as elegant as it would be, but hey, it works, it passes tests, and doesn't break anything.

  • Balazs Nagy
    Balazs Nagy commented at 12:39 PM

    So far the tests are done. I'm working on :shallow => true support, but what I found so far are a ton of dead ends. A dead easy and elegant solution, anyone?

Monday, February 08 2010
3865 "Invalid .gemspec format in" and "already initialized constant" warnings with... was updated in Ruby on Rails