get model name

Don't ask that here.
   Ask there => http://nubyonrails.com/tools/pluralize

You want:
   "people".classify => "Person"
You might also want:
  "people".classify.constantize => Person

constantize gives you the class, not a String.

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com