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.

Jeff Dean's latest activity

Sunday, April 05 2009
2414 Custom template handlers are broken in test (and maybe production) was updated in Ruby on Rails
  • Jeff Dean
    Jeff Dean commented at 3:47 PM

    Thanks again for taking the time to look at this. That did the trick. This can be closed.

Saturday, April 04 2009
2414 Custom template handlers are broken in test (and maybe production) was updated in Ruby on Rails
  • Jeff Dean
    Jeff Dean commented at 8:33 PM

    Quick note - the sample app has one controller with 4 actions:

    • Just a template (no action)
    • An empty action with a template
    • Using render :template with no exten...
  • Jeff Dean
    Jeff Dean commented at 8:31 PM

    Thanks for taking a look at this so quickly - I see what you mean about the view paths. I've attached a sample app that demonstrates the problem:

    Run in develop...

  • Jeff Dean
    Jeff Dean created the ticket at 6:38 AM

    If you create a custom template handler, like the one described in Agile Web Development with Rails (.rdoc), the code examples will not work in the test environ...

Wednesday, February 11 2009
1913 Use #to_param in generated controller tests. was updated in Ruby on Rails
Thursday, June 19 2008
393 Routes are case sensitive was updated in Ruby on Rails
  • Jeff Dean
    Jeff Dean commented at 3:44 AM

    Not only that, but in 37Signals' own book Defensive Web Design they talk about how important case-insensitive urls are.

    I agree that the path portion of urls ...

Wednesday, June 04 2008
311 [PATCH] - Add query-attribute methods to associations was updated in Ruby on Rails
  • Jeff Dean
    Jeff Dean commented at 2:25 AM

    I don't see a has_tasks? method in irb or in the docs.

    
    class Project < ActiveRecord::Base
      has_many :tasks
    end
    
    class Task < ActiveRecord::Base
      belo...
Tuesday, June 03 2008
311 [PATCH] - Add query-attribute methods to associations was created in Ruby on Rails
  • Jeff Dean
    Jeff Dean created the ticket at 5:42 AM

    This patch adds query-attribute methods to associations.

    
    class Post < ActiveRecord::Base
     has_one :author
     has_many :comments
     has_many :readers, :throug...
Friday, May 02 2008
71 [patch] change_table block was updated in Ruby on Rails
  • Jeff Dean
    • Title changed from Add change_table to core? to [patch] change_table block
    by Jeff Dean at 4:58 AM

    Sorry to have taken your time with that - I've updated the patches to include tests that run in:

    • MySQL
    • PostgreSQL
    • SQLite3

    I don't have any of the other d...

Thursday, May 01 2008
74 problem with tests and custom mysql fulltext indexes was updated in Ruby on Rails
  • Jeff Dean
    Jeff Dean commented at 10:59 AM

    In environment.rb uncomment:

    config.active_record.schema_format = :sql

    Then when you run db:test:prepare --trace you'll notice that it uses clone_structure i...