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.

q's latest activity

Monday, January 04 2010
3649 destroy method does not work correctly with fixtures was created in Ruby on Rails
  • q
    q created the ticket at 2:05 PM

    My unit test

      test "destroy should destroy tournaments" do
        assert_equal 2, @player.players_in_games.size
        assert @player.destroy
        assert_equal 0, @p...
Thursday, February 26 2009
1808 fields_for is broken for nested resources since 2.2.x was updated in Ruby on Rails
  • q
    q commented at 1:33 PM

    Sorry, I don't understand your question. I just have nested resources and this @@@<% fields_for([@questionnaire, @section, @question_definition, @answer_type]) ...

  • q
    q commented at 12:54 PM

    This has actually been deprecated, which seems logical, because the url for the action is only necessary for Form_for, not fields_for.

    But this is the key poi...

Sunday, February 22 2009
1808 fields_for is broken for nested resources since 2.2.x was updated in Ruby on Rails
  • q
    q commented at 4:27 PM

    You say this doesn't work since 2.2.x, so I'm assuming this doesn't have to do with the changes I introduced in 2.3rc1.

    That's correct.

    You are probably l...

Thursday, January 29 2009
1808 fields_for is broken for nested resources since 2.2.x was updated in Ruby on Rails
  • q
    q commented at 11:59 AM

    Sorry, but I have to revise myself. The bug is still the. My post from January 28th, 2009 @ 09:01 PM is therefore obsolete.

Wednesday, January 28 2009
1808 fields_for is broken for nested resources since 2.2.x was updated in Ruby on Rails
  • q
    q commented at 9:01 PM

    Finally, I've found the bug: I had both, the github and the rubyforge gem sources (check via gem sources).

    After removing the rubyforge gem source and re-instal...

  • q
    q commented at 7:35 PM

    As you can see here in the fields_for method of form_helper.rb file the when part for the array case is missing:

    
    def fields_for(record_or_name_or_array, *arg...
  • q
    q created the ticket at 7:17 PM

    Until Rails 2.1.x the following code snippet worked for me like a champ:

    
    <% fields_for([@questionnaire, @section, @question_definition, @answer_type]) do |at...