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.

DHH's latest activity

Friday, January 22 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • DHH
    DHH commented at 1:10 AM

    I think it can work just like it did in 2.3.x:

    resources :users, :shallow => true do
    resources :articles end

Monday, December 28 2009
2227 [VERIFIED] batches: :conditions for each are applied to each Model.find withi... was updated in Ruby on Rails
  • DHH
    • Assigned user changed from DHH to Pratik
    by DHH at 7:37 PM
3618 Unable to create a rails application using system gems was updated in Ruby on Rails
  • DHH
    • State changed from new to committed
    by DHH at 3:25 AM

    Wups, wrong ticket! This is closed.

  • DHH
    • State changed from resolved to new
    • Assigned user changed from José Valim to josh
    by DHH at 3:25 AM

    This is because integration tests are now being thrown InvalidAuthenticityToken. They should be exempt from needing to pass that token in.

3620 Object#nonblank? (analogous to Ruby's Numeric#nonzero?) was updated in Ruby on Rails
  • DHH
    • State changed from new to committed
    by DHH at 1:55 AM

    Committed as Object#presence.

Friday, December 25 2009
2409 activerecord double escapes error_messages_for was updated in Ruby on Rails
  • DHH
    • State changed from new to wontfix
    by DHH at 4:35 AM

    Why wouldn't you just á and ó in the error message? Presumably your HTML is being returned as UTF-8, so you should be good. It seems more confusing that < and >...

Tuesday, December 22 2009
3605 "root" doesn't work as advertised in new routing DSL was updated in Ruby on Rails
  • DHH
    DHH commented at 3:31 PM

    Your functional test is the problem. You can't use paths for the get there. That's what you do in integration tests. In functional, you'd do get :index.

    I've ve...

  • DHH
    • State changed from open to resolved
    by DHH at 5:51 AM

    Works for me. Added a test to the suite testing root specifically and that works too. Think it must be something in your test script.

  • DHH
    • State changed from open to resolved
    by DHH at 12:56 AM

    Fixed the documentation instead. Allowing the :to to use a string to signify the controller would clash with the regular use of :to that uses a symbol for an ac...

3606 Unable to run working edge app with vendored rails. was updated in Ruby on Rails
  • DHH
    • State changed from committed to resolved
    by DHH at 1:20 AM

    Wups, wrong ticket.

    The problem here is that rails/master depends on rack/master. You currently need to build that gem by hand and install it. By the time rails...