Hi folks, I''m a recent convert to Ruby/Rails for some personal development projects I''m undertaking. Love it, am incredibly impressed with the simplicity, etc. etc. One area where I''m continually challenged is groking all of the nuances around ActiveRecord. By this I mean naming rules (i.e., how it maps columns, table names, etc.), setting up relationships, and so on. I''ve been through all of the tutorials and am hacking my way along, but when I stumble it is usually with ActiveRecord. Am I missing a good tutorial or dev guide to just ActiveRecord? -- Chris Brooks http://www.chrisbrooks.org
> Am I missing a good tutorial or dev guide to just ActiveRecord?The API at http://ar.rubyonrails.org also serves as an introduction to all the aspects of it. Each major section is prefaced with a textual description of why and how. So that''s a good start. But we do need more. I actually remember Gavin Sinclair promising a tutorial to just Active Record. Perhaps this will remind him that we''re still needing ;) On top of that, work is being done to get something on dead trees. But you shouldn''t start holding your breath just yet. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain
On Sunday, November 14, 2004, 10:29:21 PM, David wrote:>> Am I missing a good tutorial or dev guide to just ActiveRecord?> The API at http://ar.rubyonrails.org also serves as an introduction to > all the aspects of it. Each major section is prefaced with a textual > description of why and how. So that''s a good start.It is indeed, check out the README files, Chris.> But we do need more. I actually remember Gavin Sinclair promising a > tutorial to just Active Record. Perhaps this will remind him that we''re > still needing ;)Thanks for the reminder. I''m currently working on a tutorial for all of Rails, as it happens. But that''s not the same thing. Gavin
On Sun, 14 Nov 2004 23:39:40 +1100, Gavin Sinclair <gsinclair-81uBx+iSpXA0n/F98K4Iww@public.gmane.org> wrote:> On Sunday, November 14, 2004, 10:29:21 PM, David wrote: > > >> Am I missing a good tutorial or dev guide to just ActiveRecord? > > > The API at http://ar.rubyonrails.org also serves as an introduction to > > all the aspects of it. Each major section is prefaced with a textual > > description of why and how. So that''s a good start. > > It is indeed, check out the README files, Chris.That''s where I''ve been hanging out. I''m making progress; my comments were more about relative friendliness rather than an outright criticism. Most of the intro stuff to rails is SO good that the basics on ActiveRecord look poor in comparison. The tutorial on testing, which I just finished yesterday, was outstanding. -- Chris Brooks http://www.chrisbrooks.org