fix Rails 4 problem with form builder ("undefined method `upcase'")

In Rails 4, ActiveRecord::Base#model_name no longer returns a string, but an ActiveModel::Name object, see https://gist.github.com/brupm/4544950. Calling #to_s on this object is a Rails3-compatible workaround for this change.