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.

Nate Wiger's latest activity

Thursday, July 08 2010
4925 Rails 3 to_json incompatible with JSON core library was updated in Ruby on Rails
  • Nate Wiger
    Nate Wiger commented at 11:18 PM

    For others wondering, the only way I've found to workaround this is to put this in environment.rb, after the initializer block

    class Array
      def to_json(*a)
      ...
4494 Ruby 1.9.2-head's JSON support breaks to_json for arrays of records was updated in Ruby on Rails
  • Nate Wiger
    • Tag changed from json to activerecord 3.0, rails 3.0.0.beta4, activesupport, active_support, json
    by Nate Wiger at 11:15 PM

    The only way I've found to workaround this is to put this in environment.rb, after the initializer block

    class Array
      def to_json(*a)
        ActiveSupport::JSON....
Monday, June 21 2010
4925 Rails 3 to_json incompatible with JSON core library was created in Ruby on Rails
  • Nate Wiger
    Nate Wiger created the ticket at 7:53 PM

    It appears that Rails 3 changes the signature of to_json vs the JSON core lib. Unfortunately, this breaks ActiveRecord and other components when trying to use t...

Friday, June 11 2010
4834 Please un-deprecate before_save, after_save, etc methods was created in Ruby on Rails
  • Nate Wiger
    Nate Wiger created the ticket at 8:42 PM

    We have been working to move from 2.3.3 to 3.0.0.beta4 recently and have run into this decision:

    Base#before_save has been deprecated, please use Base.before_s...
Sunday, April 11 2010
2409 activerecord double escapes error_messages_for was updated in Ruby on Rails
  • Nate Wiger
    Nate Wiger commented at 6:16 PM

    FWIW, I agree with Sam's expectations about how files should act.

    If you have an application file, that file's contents should be considered trusted. Since the ...

Sunday, March 28 2010
3743 script/plugin install git://whatever does nothing was updated in Ruby on Rails
  • Nate Wiger
    Nate Wiger commented at 4:43 PM

    You can close it. My last post showed how to fix it.

Friday, February 12 2010
3743 script/plugin install git://whatever does nothing was updated in Ruby on Rails
  • Nate Wiger
    Nate Wiger commented at 11:39 PM

    I tracked this down to a conflict with ~/.gitconfig. If I remove these lines it works:

     [branch "master"]
       remote = origin
       merge = refs/heads/master
    

    It a...

Friday, February 05 2010
3743 script/plugin install git://whatever does nothing was updated in Ruby on Rails
  • Nate Wiger
    Nate Wiger commented at 4:32 AM

    WOW, Prem, thanks a ton. You have been so helpful. So let me get this straight:

    • I give you an exact version of git to use
    • I give you exact steps to follow
    • I gi...
Saturday, January 23 2010
3760 Make AR guess the inverse of an association if not specified was updated in Ruby on Rails
  • Nate Wiger
    Nate Wiger commented at 7:53 PM

    +1 for sure. This would be great - DataMapper and Sequel already support correct inverse associations, so it's really something that AR should support as well.

Thursday, January 21 2010
3743 script/plugin install git://whatever does nothing was updated in Ruby on Rails
  • Nate Wiger
    • Tag changed from 3.0pre, bug, plugin, scriptplugin to 2.3.5, 3.0pre, bug, patch, plugin, scriptplugin
    by Nate Wiger at 11:58 PM

    Updated to latest git from git-scm.com, and Rails 2.3.5, and it still fails.

    The reason is that it appears rails-2.3.5/lib/commands/plugin.rb is trying use git ...