This project is archived and is in readonly mode.

#3055 ✓committed
Scott Woods

Documentation for belongs_to incorrectly advertises Post#author?

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

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages