Yes, that will technically work, but it will create a separate table for the addresses for all of the other models to which it is added. As a database designer for many years, this rubs me the wrong way. I want the data to be stored in the same table with Employees...etc.
Arthur ________________________________ From: Mark Sobkowicz <[email protected]> To: [email protected] Sent: Thu, March 17, 2011 3:23:25 AM Subject: Re: [Hobo Users] [1.3 pre 29] Any training available in Los Angeles area? One way to do this would be to create a Postal_Address model that you use for this. Then you could create forms and layouts for it, and include it in your other models with belongs_to. On Mar 17, 2011, at 12:24 AM, Arthur Baldwin wrote: I'm getting desperate to learn more about hobo. > >Here's where I work: > >The Computer Outlet, Inc. >2755 Melbourne Avenue >Pomona, CA 91767 >(909) 398 - 1888 > >I've read enough about hobo to realize that I would like to modularize a >section >that will group together the following fields: > >Address >City >RegionID (aka State) >PostalCode >CountryID > >By modularize I mean something that I can quickly add to any model whether it >be >Employee, Contact, Customer, Vendor or whatever. >And I would like this module to include a layout design so that the fields >will >always be in a typical postal address layout: > >Address >City, Region PostalCode >Country > >Region and Country should be dropdowns. Eventually I would like to have this >module include the ability to verify addresses with the USPS. > >I have called most of the colleges and universities in my area, but nobody >offers any classes in hobo or in Ruby on Rails. Yes, I know about RailsCasts >with Ryan Bates, but I need more info that is specific to hobo. > >Can anyone please offer their assistance? > >Arthur Baldwin, MIS Director >The Computer Outlet, Inc. > > > > >-- >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.
