Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Documentation for belongs_to incorrectly advertises Post#author?

#3055

In the example section of the documentation for belongs_to, it states that if Post belongs_to :author, then we will get the method Post#author?, which is not true -- no such method is added (the user should probably use post.author.present? or post.author.nil? instead).

The attached patch removes that line from the documentation.

Reported by Scott Woods · August 15th, 2009 @ 02:23 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. clinton
    clinton
    1. I don't see this method myself.

    August 18th, 2009 @ 12:40 AM

  2. Ryan Bigg
    Ryan Bigg

    Thanks for your ticket Scott,

    I'm not a core team member but I do have access to the documentation side of things and I've removed this line in this commit: http://github.com/lifo/docrails/commit/d84106c5b7ca2a5ac7e2b90f6b08...

    October 27th, 2009 @ 10:16 AM

  3. Rizwan Reza
    Rizwan Reza
    • State changed from new to committed

    March 26th, 2010 @ 09:10 AM