#713 ✓resolved
Iain

Default flash messages do not use view hints

Reported by Iain | April 30th, 2010 @ 02:33 AM | in Hobo 1.0X

After create and update, the default flash message displayed by hobo ignores the model name view hint for the class, and instead just uses the class name.

Eg. If I have this setup:

class Foo < ActiveRecord::Base
end

class FooHints < Hobo::ViewHints
  model_name "Bar"
end

Then after an update, the flash message displayed (assuming I have no i18n files) will be:

Changes to the foo were saved

rather than:

Changes to the bar were saved

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Referenced by

Pages