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

Ticket #11195 (closed enhancement: fixed)

Opened 7 months ago

Last modified 6 months ago

[PATCH][DOCS] has_one and has_many options added to resources

Reported by: miloops Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords: verified
Cc:

Description

This is the missing documentation for the usefuls has_one and has_many options added to resources in Rails 2.0.

Attachments

add_associations_doc_to_resources.diff (1.1 kB) - added by miloops on 02/22/08 12:33:44.
add_associations_doc_to_resources.2.diff (1.1 kB) - added by miloops on 02/22/08 20:04:45.

Change History

02/22/08 12:33:44 changed by miloops

  • attachment add_associations_doc_to_resources.diff added.

02/22/08 12:46:19 changed by leethal

+1

02/22/08 14:21:37 changed by lifofifo

+1

02/22/08 15:43:29 changed by jamesh

+1, definitely. Not to nick-pick, but you refer to "singular" resources. You might want to change that to "singleton", per convention used with map.resource

02/22/08 19:57:57 changed by miloops

I took the singular resource part from the CHANGELOG written by DHH, and as you may notice the example is pretty much the same.

You can view it here: http://dev.rubyonrails.org/changeset/6588

I appreciate your feedback, do you still think i should change it?

02/22/08 20:01:27 changed by jamesh

I think so. Since "map.resource" uses "singleton", it's best to use consistent language, IMHO. That said, it's such a minor thing that I hate to hold up a perfectly good ticket.

02/22/08 20:04:45 changed by miloops

  • attachment add_associations_doc_to_resources.2.diff added.

02/22/08 20:07:46 changed by miloops

Doc updated, at first i used singleton but changed it before commiting because i read that CHANGESET.

I agree with you that singleton is the right word.

Thanks!

02/22/08 20:29:04 changed by miloops

  • keywords changed from docs to verified.

03/05/08 10:52:28 changed by pratik

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

(In [8982]) Documenation for has_one/has_many nested resource options. Closes #11195 [miloops]