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

Ticket #9833 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

[PATCH] Docfixes for render :json

Reported by: chuyeow Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords: docs, tiny
Cc:

Description

Updates the ActionController::Base#render documentation where render :json is involved.

Specifically,

  • Changed example outputs to be valid JSON,
  • Make a note that render :json will automatically call to_json (per r7530),
  • Default response content type for render :json should be application/json (and not text/x-json).

Attachments

render_json_docfix.diff (2.3 kB) - added by chuyeow on 10/09/07 17:07:27.

Change History

10/09/07 17:07:27 changed by chuyeow

  • attachment render_json_docfix.diff added.

10/09/07 17:10:48 changed by chuyeow

Sorry, it should be r7520, not r7530.

10/09/07 17:32:55 changed by sjgman9

  • keywords changed from docs to docs, tiny.

+1

10/15/07 07:04:13 changed by nzkoz

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

(In [7905]) Fix Json related documentation for render and the AR serializer. Closes #9814. Closes #9833. [chuyeow]