I have a Bookmark
model. I would like to have a List
model. So my users can create Bookmark lists.
I've created a List
scaffold with this command
rails generate scaffold List title:string
- A List can have many bookmarks
- A Bookmark can have many lists
Can someone help me to create List Bookmark relationship.?
It would be awesome if you can give me some resources to learn.
Update:
- A Bookmark can have many lists
Lets say I bookmarked http://stackoverflow.com
. And say I have two lists like:
- Programming Help
- Favorite sites
Then I should be able to add my bookmark to both lists.
So I guess A Bookmark can have many lists
is a valid statement.