Posted by Andrew Cetinick on June 17th, 2008
In this tutorial I will show you how to create a one-to-one relationship in Ruby on Rails. There are some cases you will need to use a one-to-one relationship, where one record in table A has a record in table B and vice versa.
Related: Ruby on Rails one-to-many Tutorial
Related: Ruby on Rails many-to-many Tutorial
Read the rest of this entry »
Posted by Andrew Cetinick on June 17th, 2008
This tutorial covers the basics of implementing a one-to-many relationship in Ruby on Rails. There are many options available to you when creating this relationship. You should be aware of these, and I will cover a few of the important ones. I will also show you some of the methods Rails gives you access to in the relationship.
Related: Ruby on Rails many-to-many Tutorial
Related: Ruby on Rails one-to-one Tutorial
Read the rest of this entry »
Recent Comments