Hello everyone, I'm a native French speaker, and I'm struggling with some model names. I'm working on the accounting package for an app. I have Accounts and TransactionRecords, and now I must relate accounts with transactions. What should the model between be named ? I thought of AffectedAccount, RecordMember, TransactionMember, but none of these feels very satisfactory. Even in French I'm not sure how I would name these objects... So, if anybody found a good solution, I'd be interested in hearing it. Thanks ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hi Francois, Francois Beausoleil wrote:> I''m working on the accounting package for an app. > I have Accounts and TransactionRecords, and now > I must relate accounts with transactions. What > should the model between be named ?I''m not completely sure I understand your question, but perhaps this will help. If you are asking about naming the models for your tables... Models in Rails are, by convention, named the singular version of the name of the table on which they are based. The model for your Accounts table should be named Account. The model for TransactionRecords should be named TransactionRecord. If you are asking about naming a model that relates ''accounts with transactions'', without more information I''m not sure why you would want a seperate model for this. It seems like a simple has_namy / belongs_to relationship would work. If not, please say more. Sorry I couldn''t be more help. Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Oct 19, 2006, at 6:08 AM, Francois Beausoleil wrote:> I''m a native French speaker, and I''m struggling with some model names. > I''m working on the accounting package for an app. I have Accounts > and TransactionRecords, and now I must relate accounts with > transactions. What should the model between be named ? > > I thought of AffectedAccount, RecordMember, TransactionMember, but > none of these feels very satisfactory. Even in French I''m not sure > how I would name these objects...I would think: Accounts->TransactionRecords->Ledgers -- -- Tom Mornini, CTO -- Engine Yard, Ruby on Rails Hosting -- Reliability, Ease of Use, Scalability -- (866) 518-YARD (9273) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hello Tom, 2006/10/19, Tom Mornini <tmornini@infomania.com>:> Accounts->TransactionRecords->LedgersAh! Bingo, exactly what I wanted. Thanks ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/19/06, Tom Mornini <tmornini-W/9V78bTXriB+jHODAdFcQ@public.gmane.org> wrote:> > On Oct 19, 2006, at 6:08 AM, Francois Beausoleil wrote: > > > I''m a native French speaker, and I''m struggling with some model names. > > I''m working on the accounting package for an app. I have Accounts > > and TransactionRecords, and now I must relate accounts with > > transactions. What should the model between be named ? > > > > I thought of AffectedAccount, RecordMember, TransactionMember, but > > none of these feels very satisfactory. Even in French I''m not sure > > how I would name these objects... > > I would think: > > Accounts->TransactionRecords->LedgersSounds pretty similar to what we''re doing here (though our naming is a bit off, we inherited some made-up-english terms), but could you elaborate on what each table contains? Accounts is straight forward enough. But, if someone else store the accounts for different entities (we call them ''clients'') in one db, I''d love to see how you tie accounts to reporting. I''m not sure about TxRecord vs. Ledger, though. Isak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Perhaps not very useful in this case but I find looking up a thesaurus to be very useful in coming up with good model names sometimes. Hammed On 10/20/06, Francois Beausoleil <francois.beausoleil-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello Tom, > > 2006/10/19, Tom Mornini <tmornini-W/9V78bTXriB+jHODAdFcQ@public.gmane.org>: > > Accounts->TransactionRecords->Ledgers > > Ah! Bingo, exactly what I wanted. > > Thanks ! > -- > François Beausoleil > http://blog.teksol.info/ > http://piston.rubyforge.org/ > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---