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.

brpratt (at gmail)'s latest activity

Monday, October 25 2010
5859 Nested objects return extra nil array was updated in Ruby on Rails
  • brpratt (at gmail)
    brpratt (at gmail) commented at 3:47 PM

    Interestingly I found in the form:

    <h2>Add a comment:</h2>
    <%= form_for([@post, @post.comments.build]) do |f| %>
      <%= f.error_messages %>
    
      <div class="field...
  • brpratt (at gmail)
    brpratt (at gmail) commented at 3:47 PM

    Interestingly I found in the form:

    <h2>Add a comment:</h2>
    <%= form_for([@post, @post.comments.build]) do |f| %>
      <%= f.error_messages %>
    
      <div class="field...
  • brpratt (at gmail)
    brpratt (at gmail) commented at 3:35 PM

    If it was doing a build by default wouldn't that be reflected in the db? Why would Comment.count show 0 and then my app gets an extra comment?

    This app is prett...

Friday, October 22 2010
5859 Nested objects return extra nil array was created in Ruby on Rails
  • brpratt (at gmail)
    brpratt (at gmail) created the ticket at 9:28 PM

    Nested objects in 3.0.1 seem to have some sort bug that returns a null object.

    Posts class :has_many comments
    Comments class :belongs_to post

    In routes.rb I hav...