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.

Samuel Kadolph's latest activity

Monday, July 05 2010
5050 Add lazy load hooks for all frameworks was created in Ruby on Rails
  • Samuel Kadolph
    Samuel Kadolph created the ticket at 5:27 PM

    Currently ActiveSupport has lazy load hooks for action_view, action_controller, action_mailer, active_record. I see no reason why all of the frameworks shouldn'...

Sunday, June 27 2010
4975 Model Namespaces and HABTM was updated in Ruby on Rails
  • Samuel Kadolph
    Samuel Kadolph commented at 1:52 AM

    The same thing happens when they are under a module named Contact. Which isn't what you would want, anything under the Contact namespace (class or module) shoul...

  • Samuel Kadolph
    Samuel Kadolph commented at 1:40 AM

    That's why I never used the word bug.
    However with all of the changes to allow for namespacing of controllers, helpers and models. It only makes sense that all ...

Friday, June 25 2010
4975 Model Namespaces and HABTM was created in Ruby on Rails
  • Samuel Kadolph
    Samuel Kadolph created the ticket at 9:48 PM

    If you have a model under a namespace and try to set up any HABTM association with it, the join table that it tries to use by default strips out the namespace. ...

Wednesday, June 23 2010
4890 Correct output from ActiveModel::Errors to_json was updated in Ruby on Rails
  • Samuel Kadolph
    Samuel Kadolph commented at 10:11 PM

    I've been looking into writing a test case for this but I have to get the tests for rails going first which hasn't been easy on Windows and our only other Unix ...

Thursday, June 17 2010
4890 Correct output from ActiveModel::Errors to_json was updated in Ruby on Rails
  • Samuel Kadolph
    Samuel Kadolph commented at 6:45 PM

    Complete patch is attached. (Sorry, new to the whole patching rails thing.)

  • Samuel Kadolph
    Samuel Kadolph commented at 6:12 PM

    The solution is to override the ActiveModel::Errors#as_json method to give the full_messages array to be converted to JSON. Patch is attached.

  • Samuel Kadolph
    Samuel Kadolph created the ticket at 6:02 PM

    ActiveModel::Errors#to_xml correctly outputs valid XML that can be used to display all errors. ActiveModel::Errors#to_json does not output valid JSON because it...