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.

Josh Sharpe's latest activity

Saturday, September 26 2009
3209 symbol value support for check_box_checked? was updated in Ruby on Rails
  • Josh Sharpe
    Josh Sharpe commented at 6:35 PM

    patch applies to both 2-3 and master.
    tests pass

    +1

2982 [PATCH] Let Integer#multiple_of? accept zero as argument was updated in Ruby on Rails
  • Josh Sharpe
    • Title changed from Let Integer#multiple_of? accept zero as argument to [PATCH] Let Integer#multiple_of? accept zero as argument
    by Josh Sharpe at 6:19 PM

    +1 both patches work

3218 default_scope is having a side affecct on create was updated in Ruby on Rails
  • Josh Sharpe
    Josh Sharpe commented at 6:08 PM

    +1 to hsume2's master patch

    Here's the patch for 2-3 which is basically identical to the master patch.

3261 [PATCH] rake dev not working on master was updated in Ruby on Rails
  • Josh Sharpe
    • Title changed from rake dev not working on master to [PATCH] rake dev not working on master
    by Josh Sharpe at 4:57 PM
Friday, September 11 2009
2904 Avoid copying errors from child to parent on autosave was updated in Ruby on Rails
  • Josh Sharpe
    Josh Sharpe commented at 4:27 PM

    Ideally error_messages_for would support an unlimited about nesting, the same way find(:include/:join) does.

    error_messages_for :project, :associations => [{:ac...

  • Josh Sharpe
    Josh Sharpe commented at 4:11 PM

    Let error_messages_for compile the errors into the nested structure that you described above. (With a :flatten option) I think that'd work great.

  • Josh Sharpe
    Josh Sharpe commented at 3:57 PM

    I don't like putting :validate on has_many. If we do that, then what's the relevance of validates_associated? Also, what happens with nested attributes? Also :a...

  • Josh Sharpe
    Josh Sharpe commented at 2:54 AM

    I want whatever solution will allow me to show my users the errors that pertain to them. So if:

    Profile validates_associated :address and
    I have a profile/addre...

Thursday, September 10 2009
2904 Avoid copying errors from child to parent on autosave was updated in Ruby on Rails
  • Josh Sharpe
    Josh Sharpe commented at 8:51 PM

    Are you still planning to release a 2.3 patch for this? If you guys are busy on other issues at the moment I'd be more than willing to take your ideas and get s...

  • Josh Sharpe
    Josh Sharpe commented at 8:20 AM

    IMO I think you guys are on the right track.

    Maybe picking and choosing from the above patch is in order...

    a) Errors should be on the object that they belong t...