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.

Eloy Duran's latest activity

Monday, March 09 2009
2172 Nested model forms error on loading data from belongs_to associations that ev... was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 12:47 PM

    not sure I like the idea of silently eating the f.fields_for block when the association is nil.

    Like discussed in #rails-contrib, this is not silently eating ...

  • Eloy Duran
    • Assigned user changed from Eloy Duran to Michael Koziarski
    • State changed from new to open
    by Eloy Duran at 10:02 AM

    Very nice, thanks a lot!

    Returning an empty string from fields_for_with_nested_attributes feels dirty for some reason I can't qualify, but it does communicate ...

2084 Alternative XML parsers support in ActiveSupport for ActiveResource was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 9:31 AM

    Do we need an additional check on the version of libxml that's installed? This is with a stock ruby install from 10.5.6

    Yes I think we do. The version that sh...

2036 Linking and unlinking via accepts_nested_attributes_for was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 8:49 AM

    @ Di Marcello: I quickly skimmed it and I understand the intent. But there are no tests and I want extensive test coverage.

    Maybe, now that I understand how you...

  • Eloy Duran
    Eloy Duran commented at 8:49 AM

    @Lawrence: If you really need to change the behaviour of other methods you can override them in a Module and then call super. This is done whit the has_many, ha...

Sunday, March 08 2009
2146 Nested attributes doesn't run removing association callbacks was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 10:18 PM

    Invoking destroy will run ActiveRecord::Base callbacks, cause record is an instance of that class and doesn't know to belonging to an association.

    Sorry, I do...

2172 Nested model forms error on loading data from belongs_to associations that ev... was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 10:08 PM

    Yes, you got it right. And it should definitely be mentioned in the documentation.

    About the extra work necessary in the controller; you might want to shove tha...

  • Eloy Duran
    Eloy Duran commented at 1:03 PM

    I agree we should fix this error people run into. But I wonder if simply using a regular fields_for is what the user expects. For instance, how about dynamic de...

Saturday, March 07 2009
2149 Inconsistent has_many validation. was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 1:05 PM

    Oh and I forgot to add that it is weird that validates_associated would fix this…

  • Eloy Duran
    Eloy Duran commented at 12:58 PM

    Whats the best (fastest) way for me to do that?

    The fastest way to find where a bug was introduced, if it was, would be to use git-bisect. You create a file w...