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.

David Trasbo's latest activity

Sunday, September 05 2010
5537 Script tag in prototype_helper rdoc causing formatting issue in API was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 7:28 PM

    Jeff,

    Another option is to wrap <script> in a <tt> tag. I've attached a patch that does just that - it also makes sure to wrap at 80 characters.

5548 Date.end_of_week not working in production mode was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 7:04 PM

    Neither was I:

    ➜  script/rails c
    Loading development environment (Rails 3.1.0.beta)
    ruby-1.9.2-p0 > a = Date.new(2010, 9, 30)
     => Thu, 30 Sep 2010 
    ruby-1.9.2-...
5557 Rails 3.0.0, 'yield' won't show block contents in render :layout, if it is pl... was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 6:54 PM

    +1

    Patch applies cleanly and the included test fails without the fix but passes with it.

5559 reload inconsistent in AR was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 6:43 PM

    Whether or not that's inconsistent is rather subjective. Of course, if you try to reload a Active Record object that doesn't exist in the database anymore that ...

5549 ActiveRecord::Calculations.count( ) not work , when mysql table is empty was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 6:36 PM

    That turned out to be a bit crufty. Here we go again:

    ➜ ../../bin/rails new ticket_5549 --dev -d mysql...
    ➜ cd ticket_5549 ➜ bundle exec rails g model foo...
    ➜...
  • David Trasbo
    David Trasbo commented at 6:31 PM

    I was unable to reproduce this on edge Rails using Ruby 1.9.2:

    
    ➜  in ~/code/rails/railties/tmp on 5549 (✔) using ruby-1.9.2-p0@edgerailsapp ../../bin/rails ne...
5499 gem install rails 3.0.0 crashes without building rdocs was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 6:14 PM

    I was unable to reproduce this issue.

    I switched to ruby-1.8.7-p302 (the latest) with rvm, created a rails3 gemset, and did a gem install rails. It ran all the ...

Saturday, September 04 2010
5529 JSON serialization is broken was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 2:53 PM

    Awesome. FYI, I'm in there now if you have time.

Friday, September 03 2010
5529 JSON serialization is broken was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 1:18 PM

    Adrian,

    Maybe, maybe not - I can't tell. Why don't you hop into #railsbridge at irc.freenode.org and ping me there? I'm dtrasbo.

Thursday, September 02 2010
5526 Parameter "-f" for "rails generate model" does not overwrite migration files was updated in Ruby on Rails
  • David Trasbo
    • Assigned user set to José Valim
    by David Trasbo at 3:29 PM

    Here's a patch that makes rails g model and rails g migration remove the colliding migration file if you pass --force to it.