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.

Ryan Bates's latest activity

Friday, May 23 2008
248 Not able to use block-setting of attributes via association was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 11:01 PM

    Here's a patch.

Thursday, May 22 2008
235 Output Rails version when starting server was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 12:34 AM

    +1 I've wanted this functionality. Looks great to me!

236 Add Rails.version was created in Ruby on Rails
  • Ryan Bates
    Ryan Bates created the ticket at 12:21 AM

    This small patch adds Rails.version which just calls Rails::VERSION::STRING. I think it's much nicer to look at and remember, and it goes well with the other R...

Wednesday, May 21 2008
234 Make auto_link accept parentheses in URLs was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 11:51 PM

    +1, tested patch and looks good. Nice job on your first submission!

192 AR Test failure on latest mysql was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 5:53 PM

    Oops, sorry, that patch was bad. Please use this one.

  • Ryan Bates
    Ryan Bates commented at 5:50 PM

    I ran into this problem under MySQL 5.0.51b. Attached is a patch which checks the mysql version in the test and acts accordingly.

231 Calling reload on model should clear attribute changes was created in Ruby on Rails
  • Ryan Bates
    Ryan Bates created the ticket at 4:41 PM

    Currently, calling reload on a model does not clear the attribute changes:

    product.name = "foo"
    product.changed? # => true
    product.reload
    product.changed? ...
228 Add add_counter_cache_column to ActiveRecord migrations was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 12:19 AM

    @Guillermo, interesting idea, but then how would one add the cache column if the post_id column already exists in comments table?

    Since caching usually happen...

Tuesday, May 20 2008
228 Add add_counter_cache_column to ActiveRecord migrations was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 10:00 PM

    Nice. Would it fit to have a "t.counter_cache" method for use in create_table and change_table as well?

223 named_scope that composes other named_scopes was updated in Ruby on Rails
  • Ryan Bates
    Ryan Bates commented at 6:15 PM

    That's a pretty cool idea. It's similar to ticket #57.

    I'm wondering if the :include option might be a good spot for this. Currently it's just used to manage ...