If you have Single Table Inheritance in Rails something like this:
class Vehicle < ActiveRecord::Base
class Car < Vehicle
class Truck < Vehicle
What's the recommended way to create a single template which allows the user to create either a Car or a Truck from a single vehicles/new.html.erb? I think the tricky bit is how to lay out the html form so that BOTH car's and truck's fields are present, but when the POST occurs, the controller somehow knows to select the right form based on an html select or radio. I'm hoping someone a lot smarter than I has a great best-practices answer!!
Extra credit: the Vehicle is actually a nested association under a Person, so it is really Person#vehicle_attributes...