Ben, I really didn't intend any criticism of your efforts to make this work and I apologize for any offense I gave.
What I have found to be true is that Rails has a fairly large assumptions made about the form of your (that's all of us, not just you) code. Two that immediately jump to mind are the singular/plural distinction and the reuse of reserved words. The first you are now aware of, try adding a model field like "type:string" and see what happens when you assign to it for a demo of the second. The authors of Rails have made real efforts to document assumptions and related dependancies but the documentation is not always handy and work arounds tend to get rediscovered. This is from my own experience. So here is my suggestion. Do not, without a really good reason, use a Model name that doesn't have distinct singular/plural forms. If you must use "equipment", you will need to invent a singular or plural form that is distinct and add it to your application's "config/ initializers/inflections.rb" file. This file actually exists to cover cases of pluralization that exist but are not included in the Rails source but you can use it cover your situation as well. There are two problems with this approach. The first is admittedly a nit. You (and anyone else who needs to maintain your code) will forever see what appears to be a typographic error and, sooner or later, someone will make a "correction". The second is more than a nit. Since we very seldom touch the inflections.rb file, the fact that this is the magic that makes "equipment" work will be forgotten long before you do your taxonomy project on "moose" variants. I really hope this is helpful. Rick On Jul 25, 4:57 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote: > Ben Wilson wrote: > > [...] > > > Your snide comment about BSAT is ignorant of the effort I've put into > > trying to solve this problem. > > I didn't readRick'scomment as snide or hostile at all. I hope he will > explain his intentions, but I think he was simply trying to say that you > may be trying to do something that's somewhat difficult. I do not > believe he was putting you down or implying that you hadn't made > appropriate effort. > > > I've been professionally programming for > > well over a decade, and typically resort to the hostility of forums > > only after I can't solve the problem through intense research. > > Hostility? Have you actually read this list much? People here tend to > be quite friendly (with notable exceptions...). > > > You > > assume I'm the sort who runs to a forum first, not last. > > Again, I don't believeRickassumed anything of the kind. Rick, would > you care to clarify? > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > [email protected] > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

