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.

Neeraj Singh's latest activity

Friday, May 14 2010
3243 [PATCH] to_xml doesn't support nested structures and other inconstancies was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 8:38 PM

    @Christos Trochalakis Can you please elaborate what part of xml output you don't like in the give below scenario.

    ActiveRecord::Schema.define(:version => 20100...
4596 Better code formatting and proper fisting of stack trace was updated in Ruby on Rails
4562 .select and :select in AR does not work correctly with an array was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 7:44 PM

    @Santiago Thanks for the much better fix. Now I know better. :-)

4538 ActiveRecord.clone does not clear out timestamps was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 6:20 PM

    If clone method is going to wipe out timestamps then clone should accpet an option (:preserve_timestamps => true) that will preserve timestamps incase I need it...

4576 Rails escapes quotes at when they are at beginning and and of signle-line string was updated in Ruby on Rails
  • Neeraj Singh
    • Tag changed from bugmash, escaping, quotes, textarea to bugmash, escaping, quotes, rails3, textarea
    by Neeraj Singh at 5:09 PM

    This is not a rails issue.

    Rails is exhibiting this behavior because rack is doing all the work of converting user input in params. Take a look at this test cas...

4589 Issues with scopes/association proxies lazy/enum behavior ... was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 4:17 AM

    I spent some time looking into this issue and this is what I found.

    class Brake
      scope :good, where(:quality => 'good')
    end
    Brake.all.class #=> Array
    Brake.go...
Thursday, May 13 2010
4585 to_xml generates invalid xml with namespaced ActiveRecord redux was updated in Ruby on Rails
Wednesday, May 12 2010
4149 strange 'require' behavior in development environment was updated in Ruby on Rails
  • Neeraj Singh
    • Tag changed from rails3 to activesupport, dependencies, rails3
    by Neeraj Singh at 11:05 PM

    I spent some time today looking into this issue. Here are my thoughts.

    First this is how you can reproduce the problem.

    require 'open-uri'
    class UsersControlle...
4586 remove dead code from dependencies.rb was updated in Ruby on Rails
  • Neeraj Singh
    • Tag changed from activesupport, dependencies, rails3 to activesupport, dependencies, patch, rails3
    by Neeraj Singh at 10:32 PM

    Attached is patch.