view_hint.model_name is missing spaces
Reported by Iain | September 24th, 2009 @ 01:49 AM | in Hobo 1.0 - Final
At the moment if you have a model with more than one "word" in the name then the model_name view hint is just the model-name in camelcase. For example, if you have a model called "LighthouseTicket" then the model_name view hint will just be "LighthouseTicket".
As the purpose of view hints is to give human readable names for things, surely the view hint for "LighthouseTicket" should be "Lighthouse Ticket" (with a space).
This could be easily fixed using the "titleize" method, however I can't find where this is being set by default.
Comments and changes to this ticket
-
Bryan Larsen October 14th, 2009 @ 10:06 PM
- State changed from new to open
- Tag changed from viewhints to defect, viewhints
- Milestone set to Hobo 1.0 - Final
-
Bryan Larsen November 30th, 2009 @ 03:59 PM
- State changed from open to resolved
(from [91fbbe110a021bf76528fb0a2953735b708fee64]) [#500 state:resolved] Default view hint for model_name doesn't have spaces. http://github.com/tablatom/hobo/commit/91fbbe110a021bf76528fb0a2953...
-
Bryan Larsen December 1st, 2009 @ 08:09 AM
(from [67c233c27cc19875dd030ef6d6f5c08bcd91acfd]) [#500] translate the model_name view hint, too. http://github.com/tablatom/hobo/commit/67c233c27cc19875dd030ef6d6f5...
-
Bryan Larsen December 1st, 2009 @ 08:09 AM
(from [41fc8e6e9ca590482ff6149a5e55b8b6de075127]) [#500] oops: model_name, not model http://github.com/tablatom/hobo/commit/41fc8e6e9ca590482ff6149a5e55...
-
Bryan Larsen December 1st, 2009 @ 10:32 PM
(from [5c35b110fe63ddf68b174bcc68513e738bb0e70e]) add model_name_plural viewhint, deal with fallout for [#500] fix in the generators.
http://github.com/tablatom/hobo/commit/5c35b110fe63ddf68b174bcc6851...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
- 500 view_hint.model_name is missing spaces (from [91fbbe110a021bf76528fb0a2953735b708fee64]) [#500 s...
- 500 view_hint.model_name is missing spaces (from [67c233c27cc19875dd030ef6d6f5c08bcd91acfd]) [#500] ...
- 500 view_hint.model_name is missing spaces (from [41fc8e6e9ca590482ff6149a5e55b8b6de075127]) [#500] ...
- 500 view_hint.model_name is missing spaces (from [5c35b110fe63ddf68b174bcc68513e738bb0e70e]) add mod...