Hi, I have an application that uses single table inheritance. Very simple stuff: class Place < ActiveRecord::Base class City < Place
lets say I have a City on the @place whenever I try using the
render @place
I will get an error, saying the templace cities/city doesn't exist but I do have a places/place template.
Is the any nice way to add this fallback for the base_class on these cases?
Also in search, I have collections with several types of items so I'd have to manually render each item using class.base_class.name to force using place instead of city when rendering the item
Is that the best/only solution?
Thanks