我有Vehicle
和STI型號Car
和Motorcycle
。Rails3路線STI型號
我目前已經配置的路線如下:
resources :vehicles
resources :cars
resources :motorcycles
不過,我想它應該是這樣的漂亮:
/vehicles/ #all the methods of vehicles_controller
/vehicles/cars/ #all the methods of cars_controller
/vehicles/motorcycles/ #all the methods of motorcycles_controller
我應該如何去配置它來獲取URL ?