Topic: Simple articles in spesific category
Im new to Rails and databases, so im asking:
I have table called Articles which have id (autonumber), text(text) and category(integer).
The other table is the category table which have the names for the categories.
For example category 1 is for Cars and 2 is for Animals.
So how do i create the category table and how do i create the relations for these two tables. And how can i call the specific article that belongs to specific category.? In rails?
I have done these kind of thigs with php and graphical database admin(like phpmySqlAdmin).
But how to do this with Rails and Ruby.