我有Vehicle
STI 模型Car
和Motorcycle
.
我目前的路线配置如下:
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?