Skip to content

Commit

Permalink
associations guide: find_by_customer_id -> find_all_by_customer_id, t…
Browse files Browse the repository at this point in the history
…hanks to Kai Krakow
  • Loading branch information
fxn committed May 23, 2009
1 parent 402f08f commit 39ad75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/association_basics.textile
Expand Up @@ -30,7 +30,7 @@ Now, suppose we wanted to add a new order for an existing customer. We'd need to
Or consider deleting a customer, and ensuring that all of its orders get deleted as well:

<ruby>
@orders = Order.find_by_customer_id(@customer.id)
@orders = Order.find_all_by_customer_id(@customer.id)
@orders.each do |order|
order.destroy
end
Expand Down

0 comments on commit 39ad75b

Please sign in to comment.