Rails lessons

In 2 lectures we tried to build a small cd managing application (how oldskool). For simplicity reasons we used the following datamodel. These steps were done: Create a database with the three tables Create the rails application on the commandline: »

Has and belongs to many

The has_many_and_belongs_to_many relation is a very powerful construct in Ruby to set a relation between two entities. You can use this for many to many relations. For instance the relation between a person and a project. A person works in many projects »