I have two models: Book
and Magazine
. There are few differences in terms of attributes, but i want them to share the same controller and views (the ones of Book's model).
My question is : What is the correct way to set the routes of Magazine model inside routes.rb, considering that Book is already set as following resources :books
This is a basic question, but i want to learn the best way instead of defining all the routes manually one by one
Thanks!