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.

James Herdman's latest activity

Friday, August 21 2009
3087 ActiveSupport::JSON.encode is Inconsistent for #as_json and #to_json was created in Ruby on Rails
  • James Herdman
    James Herdman created the ticket at 8:43 PM

    Suppose you define your #as_json method as such:

    class Something < ActiveRecord::Base
      def as_json(options={})
        { :foo => "bar", :baz => "balloon" }
      end
    ...
Monday, June 29 2009
2531 Fix Rails Templates for Windows was updated in Ruby on Rails
Friday, June 26 2009
2531 Fix Rails Templates for Windows was updated in Ruby on Rails
  • James Herdman
    James Herdman commented at 1:58 PM

    @Michael, perhaps we should talk to Charles Nutter about this issue? JRuby automagically handles the issue at hand.

Tuesday, June 02 2009
2531 Fix Rails Templates for Windows was updated in Ruby on Rails
  • James Herdman
    James Herdman commented at 2:46 PM

    Wow... I really borked the formatting on that comment.

    def run_ruby_script(command, log_action = true) run("#{app('ruby')} #{command}", log_action) # where +ap...
  • James Herdman
    James Herdman commented at 2:45 PM

    @Dennis Ushakov, good catch, but I'm not sure the best solution is to include Rake as a dependency to get use of FileUtils::RUBY. I think it's fairly safe to co...

Tuesday, April 21 2009
2531 Fix Rails Templates for Windows was created in Ruby on Rails
  • James Herdman
    James Herdman created the ticket at 2:46 AM

    Rails templates currently don't work with Windows. That thing you think is called "rails" is actually "rails.bat" for Windows. This patch makes things a little ...

Monday, April 06 2009
2088 Mongrel not being stopped with CTRL-C under Windows was updated in Ruby on Rails
  • James Herdman
    • Tag changed from 2.3-rc1, mongrel, rack, server, windows to 2.3.2, mongrel, rack, server, windows
    by James Herdman at 9:39 PM

    May I suggest submitting this patch to the Rack team? It might be more applicable there.

Friday, March 27 2009
2361 Through Associations with Conditions Fails was created in Ruby on Rails
  • James Herdman
    James Herdman created the ticket at 3:36 PM

    Suppose you have a class as such:

    
    class Earning
      belongs_to :earning_category,
        :conditions => 'department_code = \'#{department_code_for_instance}\''
    ...
Wednesday, June 25 2008
484 Remove Symbol#to_proc from framework code was updated in Ruby on Rails
  • James Herdman
    James Herdman commented at 9:47 PM

    Respectfully, I think that's crazy. Why stop here? Why not instead re-write rails as a giant C extension?

    (Again rhetorical)

    Although this may have been mea...

  • James Herdman
    James Herdman commented at 9:25 PM

    +1.

    That stuff doesn't belong in the framework. KISS and what not.