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

Thursday, April 29 2010
1004 datetime_select to accept :ampm option was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 12:53 PM

    I started working on patch for this issue. However because of inconsistencies between select and select methods I was not able to make a good patch. I opened an...

4244 [PATCH] link_to :remote => false does not work was updated in Ruby on Rails
4432 datetime_select and select_datetime inconsistent for various options was updated in Ruby on Rails
  • Neeraj Singh
    • Tag changed from 2.3.6, 3.0, date_select to 2.3.6, 3.0, date_select, patch
    by Neeraj Singh at 6:14 AM

    Attached is a patch against rails edge which brings more consistency between date helper methods.

    without patch
    =============
    no options
    f.datetime_select : 20...
2523 Add 'field' attribute to ActiveRecord::Errors#to_xml was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 4:39 AM

    +1 the patch works.

    I agree with Martin that the attribute name should be 'field' instead of 'on'.

Wednesday, April 28 2010
4149 strange 'require' behavior in development environment was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 6:18 PM

    I am not able to recreate this problem with rails3 beta3. This is what I did.

    rvm use ruby-1.8.7
    rails g scaffold User name:string
    rake db:migrate
    
    # add follo...
1485 json_escape eats away double quotes was updated in Ruby on Rails
  • Neeraj Singh
    • Tag changed from patch to doc, documenation, patch, rails3
    by Neeraj Singh at 3:00 AM

    I fully agree with Kristofor Selden that json_escape documentation should explicitly mention that after that operation, the output is not a valid JSON.

    Attached...

Tuesday, April 27 2010
4490 array.to_xml should be able to handle all types of data elements was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 9:47 PM
  • Neeraj Singh
    Neeraj Singh created the ticket at 9:44 PM

    As of now array.to_xml only works if each of the elements of array respond_to to_xml. It means an array like the one given below consisting of only integer will...

4476 Lazy Loading broken since Beta3? was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 8:57 PM

    @Dylan

    As Jeremy said irb is calling inpsect on the value. If you want to suppress than then try

    > posts = Post.order("title"); nil
    

    Notce nil at the end. In t...

4489 Documentation issue in ActiveModel in rails edge was updated in Ruby on Rails
  • Neeraj Singh
    • Tag changed from activemodel, doc, documentation, rails3 to activemodel, doc, documentation, patch, rails3
    by Neeraj Singh at 8:14 PM

    Attached is a simple patch.