Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion model/associations.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kitty = Cat.new(:name => "Felix")
kitty.mother = Mother.find_by_name('Sophie')
{% endhighlight %}

Providing a object to the setter, `mother` in the example will automagically update the `mother_id` attribute. Retrieving the data later is just as expected:
Providing a object to the setter, `mother` in the example will automatically update the `mother_id` attribute. Retrieving the data later is just as expected:

{% highlight ruby %}
kitty = Cat.find_by_name "Felix"
Expand Down