Bad example on the "Active Record Associations" guide

50 views
Skip to first unread message

Fernando Calatayud Costa

unread,
Dec 2, 2014, 11:59:29 AM12/2/14
to rubyonra...@googlegroups.com
All the "Active Record Associations" guide is explained using Customer & Order classes, but... order is a reserved word for sorting in both SQL and Active Record! and if I use the browser search, looking for order (the reserved word for sorting), I found 211 matches in the page, most of them non related with sorting.

Probably we could find some classes that could also explain well Active Record without polluting searches...

Fernando Calatayud Costa

unread,
Dec 2, 2014, 12:58:19 PM12/2/14
to rubyonra...@googlegroups.com

Les Nightingill

unread,
Dec 3, 2014, 3:21:11 PM12/3/14
to rubyonra...@googlegroups.com
Rails guides are open-source at github, and available for you to edit. Within the guides themselves there is a page that describes the procedure for making changes to the docs. If nobody jumps in to fix the problem you have highlighted, please consider changing the pages yourself, you would be helping us all out. Thanks in advance.



On Dec 2, 2014, at 9:58 AM, Fernando Calatayud Costa <fcala...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Documentation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-do...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-docs.
For more options, visit https://groups.google.com/d/optout.

Fernando Calatayud Costa

unread,
Dec 4, 2014, 4:43:04 AM12/4/14
to rubyonra...@googlegroups.com
Indeed I could rewrite all examples using another classes, but I'll like to know in advance if such a change is welcome, as it will affect to several guides, which implies a not small work and possibly many people with opinions about this...

(had my change been smaller, I'd have done what you say without asking for opinions in advance)

Les Nightingill

unread,
Dec 4, 2014, 9:36:12 AM12/4/14
to rubyonra...@googlegroups.com
It’s a good idea.
Reply all
Reply to author
Forward
0 new messages