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

Friday, April 30 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 5:04 PM

    Daniel,

    Have you tried Diego's patch? I strongly recommend that, which is working.

Monday, April 19 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 8:47 PM

    The real point is to do the same as rails 2.3.5 does. And it seems you're right.

    This is my test router.rb:

    ActionController::Routing::Routes.draw do |map|
      m...
  • Balazs Nagy
    Balazs Nagy commented at 5:08 PM

    After applying your patch, the following test fails:

    ...
          resources :hosts do
            resources :publishers, :shallow => true do
              resources :maga...
  • Balazs Nagy
    Balazs Nagy commented at 12:02 PM

    Hmm, changing the other part. Nice. It seems there's a problem though (I'll try it out later today), your patch sets @scope[:name_prefix] to nil if we have @sco...

Saturday, April 17 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    • Tag changed from :shallow_routes, patch, rails3, router to :shallow_routes, rails3, router
    by Balazs Nagy at 8:19 AM

    Ouch. Then, IMHO it's safe to say my second try is a dead end too. My second patch's core was to move the yield out of resources' scope setting. We can either p...

Friday, April 16 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 11:43 AM

    This is the most clean version I can come up with.

Tuesday, April 13 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 3:21 PM

    I have two answers for wycats' question:

    You can nest resources with no end like:

    resources :users do
      resources :shipping_orders do
        resources :consignmen...
Sunday, April 11 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 11:45 PM

    Close, but no cigar. What about the other half? (err, the larger half...)

    we have to have another half of this:

    def shallow_root
      { :only => [:show, :edit, :u...
Wednesday, February 24 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Balazs Nagy
    • Tag changed from :shallow_routes, rails3, router to :shallow_routes, patch, rails3, router
    by Balazs Nagy at 9:41 AM

    Oops, Should I have added 'patch' tag?

Tuesday, February 23 2010
4026 Rubygems 1.3.6 warning in Rails 2.3.5 was updated in Ruby on Rails
  • Balazs Nagy
    Balazs Nagy commented at 1:23 PM

    I don't think this problem should be fixed in a client code. Where's the 'invalid' button?