I am trying to implement a restful app, but I have found some problems
with the design, when I have thought in implementig STI.
I will try to explain.
Only as a example, you may suppose this models
Class Person < ActiveRecord::Base
Class Customer < Person
Class Employee < Person
Class Widget < ActiveRecord::Base
Then I would like to define these resources in config/routes.rb
map.resources :customers do |customer|
map.resources :employees do |employee|
Is this the correct way to abord this problem?
Can I go in the REST style way for this case?
I will appreciate any comment of someone with some experience with these
Juan M. Cervera