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.

Aditya Sanghi's latest activity

Wednesday, December 01 2010
6095 Nested Routing in Rails 3.0 results in "route set not finalized" error was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from new to invalid
    • Importance changed from to Low
    by Aditya Sanghi at 7:52 AM

    Closing.

Monday, November 29 2010
6074 distance_of_time_in_words calculates wrong no of years was updated in Ruby on Rails
  • Aditya Sanghi
    • Assigned user set to José Valim
    • Tag changed from actionview to actionview, patch
    by Aditya Sanghi at 3:17 PM

    Actually the subtraction makes sense here. The problems is that distance_in_year does not take care of the leap years properly when finding the distance in year...

5615 Support multiple errors per attribute in ActiveModel Errors JSON serialization was updated in Ruby on Rails
  • Aditya Sanghi
    Aditya Sanghi commented at 1:35 PM

    @thilo yes your version makes better sense.

6075 Pessimistic locking in rails 3.0.3 was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from new to resolved
    • Importance changed from to Low
    by Aditya Sanghi at 1:30 PM
6081 Rails generate skip and force options not working was updated in Ruby on Rails
  • Aditya Sanghi
    Aditya Sanghi commented at 1:28 PM

    I see where you're coming from.

    I ran 'rails g scaffold --help' and at the bottom --migration option is listed.

    This option implicitly provides --no-migration o...

6079 Serialize saves false boolean value as string "f" in sqlite3 was updated in Ruby on Rails
  • Aditya Sanghi
    • Assigned user changed from José Valim to Aaron Patterson
    by Aditya Sanghi at 1:00 PM
  • Aditya Sanghi
    • Milestone cleared.
    • Assigned user changed from Aaron Patterson to José Valim
    by Aditya Sanghi at 1:00 PM

    And adding patch for 3-0 stable as well.

  • Aditya Sanghi
    • Milestone set to 3.x
    • Assigned user set to José Valim
    • Tag changed from activerecord rails3, serialize, sqlite3 to activerecord rails3, patch, serialize, sqlite3
    • Importance changed from Low to Medium
    by Aditya Sanghi at 12:46 PM

    Adding patch for master to deal with attributes assigned as false to be serialized properly.

    Now working on 3.0.x branch.

  • Aditya Sanghi
    Aditya Sanghi commented at 12:13 PM

    On Rails master (will need to do work on Rails 3 stable branch a bit later) -

    On Rails master, i see the behavior is that boolean false is actually saved as nil...

  • Aditya Sanghi
    • State changed from new to open
    • Importance changed from to Low
    by Aditya Sanghi at 11:32 AM

    I can see this happen on 1.8.7. I also see that false gets serialized to 0 with mysql adapter.