Hobo 1.3.RC1 creates bad headings
Reported by Paul Sherwood | August 6th, 2011 @ 11:24 PM | in Hobo 1.3 (Rails 3)
It seems that the default heading for a model's show page now contains the classname of the model, as well as the model name itself.
So for example the automatically generated header in Hobo 1.0 would lead to something like "Microsoft", but now in 1.3 generates "Company Microsoft".
I can override this in hobo.en.yml, but I'm pretty sure the 1.0 behaviour is better.
Also the default header for creating a new object in 1.3 shows a pluralized model name, so "New %{model}" leads to "New Tasks" for example.
Both of these issues can be seen in the Agility tutorial.
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 08:15 PM
- State changed from new to open
- Assigned user set to Matt Jones
- Milestone set to Hobo 1.3 (Rails 3)
- Milestone order changed from 197978 to 0
I'm not 100% sure where that behavior came from, but for now (1.3.0 final) I'm leaving it in. The generators are now, at least, consistent.
As to the
New #{model}
issue, I couldn't reproduce this against 1.3.0.RC2. Can you check to see if this is still an issue? -
Matt Jones September 20th, 2011 @ 05:56 PM
- State changed from open to resolved
- Milestone order changed from 1 to 0
Got it - the issue was that calling
<ht ... count="1">
was doing the wrong thing, sincecount
was expecting an integer and not a string. Rather than trying to change every occurrence of this pattern to the correctcount="&1"
, I made theht
helper coerce the argument itself. -
Matt Jones September 20th, 2011 @ 05:57 PM
(from [3a1f39857afdb53aeeeb6b0092f64993d57f1b76]) [#960] force count option to integer in ht https://github.com/tablatom/hobo/commit/3a1f39857afdb53aeeeb6b0092f...
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
Attachments
Referenced by
- 960 Hobo 1.3.RC1 creates bad headings (from [3a1f39857afdb53aeeeb6b0092f64993d57f1b76]) [#960] ...