class Rails::Generators::ActiveModel

def errors

PUT update
POST create
def errors
  "#{name}.errors"
end