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

Tuesday, February 10 2009
1928 [PATCH] accepts_nested_attributes_for should not redefine the attribute writer was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 1:29 PM

    Ah you wanted the :autosave behaviour :) You can checkout autosave_association.rb for its source.

    That's weird, the teardown should fix that:

    
      def teardown
    ...
  • Eloy Duran
    Eloy Duran commented at 12:52 PM

    I'm not sure I understand what the use would be. It makes it so you can use accepts_nested_attributes_for :redaction', yet it won't create the writer method, so...

1895 Export OrderedHash to XML and JSON was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 10:07 AM

    Maybe someone on rubyonrails-core@googlegroups.com knows this about XML?

  • Eloy Duran
    Eloy Duran commented at 10:05 AM

    At least in JSON the spec (json.org) says clearly:

    “An object is an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (rig...

  • Eloy Duran
    Eloy Duran commented at 9:51 AM

    Because if we move from an OrderedHash to an hash, we're losing the order in 1.8 ?

    Yes that's true, but is it important for JSON and XML? (I don't know)

    And ...

  • Eloy Duran
    Eloy Duran commented at 9:43 AM

    Oh btw, that attitude is not very nice. I would have not replied if I had seen your last comment.

    People are busy with work and busy creating/fixing code that y...

  • Eloy Duran
    Eloy Duran commented at 9:40 AM

    How about doing something like the following?

    
    def to_json
      to_hash.to_json
    end
    
    def to_xml
      to_hash.to_xml
    end
    

    This way we won't need to maintain t...

Monday, February 09 2009
1912 accepts_nested_attributes_for :reject_if option not honored for has_one assoc... was updated in Ruby on Rails
Sunday, February 08 2009
1911 Neset forms and attr_accessible was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 1:40 PM

    It's not a bug. You should consider the addition of nested attributes as a new attribute accessor. So if you are using attr_protected/attr_accessible you need t...

1892 nested attributes should not have meaningful hash keys was updated in Ruby on Rails
  • Eloy Duran
    Eloy Duran commented at 1:30 PM

    @Lance & Pascal: Yes please open a new ticket and possibly compile your thoughts/ideas on the replacing/destroying of records.