get model name

If you have an instance of person

“#{@person.class}”.downcase

will get you a string in lowercase of the class name.

HTH

Daniel