Rather than have an
erbif you're a bad person ;) for every model you have, why not consolidate all of those into a single template? They all do the same thing anyway: render a table of objects along with a few actions. Using the wonderful
render_inheritablegem, you can define a single
index.html.xfile in a central location (such as
app/views/application) and have all of the customization occur at runtime.