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.

Andrea Franceschini's latest activity

Friday, January 14 2011
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was updated in Ruby on Rails
  • Andrea Franceschini
    Andrea Franceschini commented at 2:39 PM

    I think in my case episodes 196 and 197 of Railscasts is where I got that idea, but now I don't really remember. Anyway, those episodes were for Rails 2, not 3.

  • Andrea Franceschini
    Andrea Franceschini commented at 2:02 PM

    Uhm. It turns out I misunderstood the function of reject_if, since I thought that if a nested attribute is rejected, it would be deleted from the database too. ...

  • Andrea Franceschini
    Andrea Franceschini commented at 9:16 AM

    I tried to add some tests like those to my application, then watched them fail. So I added some rspec tests, then watched them fail too. You can find the latest...

Thursday, January 13 2011
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was updated in Ruby on Rails
  • Andrea Franceschini
    Andrea Franceschini commented at 6:37 PM

    Hi Neeraj,
    I just committed some changes which I left out in the first place. You should sync with the latest master branch before following the steps in the re...

Wednesday, January 12 2011
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was updated in Ruby on Rails
Saturday, January 01 2011
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was updated in Ruby on Rails
Thursday, December 30 2010
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was updated in Ruby on Rails
  • Andrea Franceschini
    Andrea Franceschini commented at 11:16 PM

    I have put together a simpler example for this, and it still doesn't work (though the proc correctly works with the symbol hash).

    # app/models/user.rb
    class Us...
Monday, December 27 2010
6227 Rails3 - accepts_nested_attributes_for reject_if is evaluated but ignored. was created in Ruby on Rails
  • Andrea Franceschini
    Andrea Franceschini created the ticket at 4:05 PM

    This may very well be a duplicate of #5579 but I'm reporting this for rails-3.0.3 (and activerecord-3.0.3) so opening a new ticket seems more appropriately (sor...

Sunday, December 26 2010
5579 Rails3 - accepts_nested_attributes_for reject_if option does not work. was updated in Ruby on Rails
  • Andrea Franceschini
    Andrea Franceschini commented at 1:06 PM

    Hi there. Though I'm using rails-3.0.3 (and of course activerecord-3.0.3) I'm facing this very same issue, exactly same behaviour. FTR, here's my sources:

    app/m...