Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8095 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

[PATCH][DOCS] ActiveRecord attr_accessible

Reported by: fearoffish Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: docs attr_accessible
Cc:

Description

Improved documentation on attr_accessible, I feel it's important to document a method rather than point you to another for info

Attachments

activerecord_attr_accessible.diff (2.0 kB) - added by fearoffish on 04/17/07 08:39:03.
whiny_in_docs.diff (2.7 kB) - added by Henrik N on 11/07/07 11:04:49.
Mentions whiny_protected_attributes instead of assuming silent discardation.

Change History

04/17/07 08:39:03 changed by fearoffish

  • attachment activerecord_attr_accessible.diff added.

04/17/07 09:06:51 changed by fearoffish

  • summary changed from [PATCH][DOCS] to [PATCH][DOCS] ActiveRecord attr_accessible.

11/06/07 23:50:27 changed by marcel

  • status changed from new to closed.
  • resolution set to fixed.

(In [8107]) Enhance explanation with more examples for attr_accessible macro. Closes #8095 [fearoffish, Marcel Molina]

11/07/07 11:04:49 changed by Henrik N

  • attachment whiny_in_docs.diff added.

Mentions whiny_protected_attributes instead of assuming silent discardation.

11/07/07 11:08:44 changed by Henrik N

Saw [8107] and realized whiny_protected_attributes is not mentioned in these docs, and that they incorrectly assume that assignment to protected attributes is silently discarded.

Attached a patch that fixes this. Also made minor rephrasings.

Couldn't decide the best place for this patch (here, #9802 or new ticket). Hope this works.