Is there any possibility to properly convert ActiveRecord table name to model class name? I have found one hack
def model_for_table(table_name) table_name.
Can do like this in rails 3:
ActiveRecord::Base.descendants.collect{|c| [c.table_name, c.name]}