If anyone knows of another addition that I can add to the following code in order to make the "show page" display "Arthur E. Baldwin" instead of "Customer"....I would appreciate it very much if you could let me know what that syntax looks like.
fields do fullname :string, :name => true address :string timestamps end My wild guess is something like: fullname :string, :name => true, :title => true but I could be way off....please help. If there is no additional statement like this, then Hobo 1.3 does indeed have a bug. Arthur ________________________________ From: Arthur Baldwin <[email protected]> To: "[email protected]" <[email protected]> Sent: Tuesday, August 16, 2011 10:02 AM Subject: Re: [Hobo Users] Possible Bug in Hobo 1.3 Also, the displayed URL is: http://localhost:3000/customers/1-arthur-e-baldwin So it is aware of the correct data in a way. Arthur ________________________________ From: Arthur Baldwin <[email protected]> To: "[email protected]" <[email protected]> Sent: Tuesday, August 16, 2011 9:53 AM Subject: Re: [Hobo Users] Possible Bug in Hobo 1.3 I thought that might be the intention, but that line is displayed as "Customer", not "Arthur E. Baldwin", so it's still not quite right. Arthur ________________________________ From: Bryan Larsen <[email protected]> To: [email protected] Sent: Tuesday, August 16, 2011 9:45 AM Subject: Re: [Hobo Users] Possible Bug in Hobo 1.3 That's not a bug, it's a feature. :) fullname is displayed in the title, so there's no need to duplicate it in the fields. Bryan On Tue, Aug 16, 2011 at 12:32 PM, Arthur Baldwin <[email protected]> wrote: > I tried re-installing Ubuntu 11.04 on one of my machines at home and updated > to the latest git repository version of Hobo 1.3 as Matt described. > Then I recreated the basic app, and created a resource called "customer" > with fullname:string and address:string. > Performed the usual hobo g migration and ran rails server. > The Customers tab appears and does not crash when clicked on, since making > the change Matt described to my Gemfile. Since making the change in > app>models>customer.rb to read: > hobo_model # Don't put anything above this > > fields do > fullname :string, :name => true > address :string > timestamps > end > The first screen after clicking the Customers tab does show a single line > for each record with the contents of the fullname field displayed as a > hyperlink. > So far so good. Then when I click on the customer's name, the next screen > should show both fields, but it does not. Only the address field is > displayed. > When I first saw this behaviour, I assumed that it was from some playing > around that I did and that it was my own fault. But after doing a fresh > install at home and doing each update step carefully as well as each hobo > command (with no intermediate mistakes), the problem still persists. On the > "edit screen" and the "new record screen" both fields do appear as they > should. So this problem is limited to only one screen. I'm not sure how to > name the problematic screen, but it comes up after clicking on any > customer's name. Perhaps I should call it the "show customer screen". > Anyway, this is clearly not a desirable thing for Hobo. Just thought you'd > like to know about it before the release. > Arthur > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
