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

Ticket #11435 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

[tiny][patch] better error message on invalid render options

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

Description

ruby flattens an array so the error message looks like "You called render with invalid options : layoutfalsefoobar" instead of "{ :layout => 'false', :foo => 'bar' }"

Attachments

render_err_msg.diff (0.8 kB) - added by court3nay on 03/26/08 23:46:55.

Change History

03/26/08 23:46:55 changed by court3nay

  • attachment render_err_msg.diff added.

03/28/08 21:23:33 changed by bitsweat

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

(In [9123]) Inspect options hashes in RenderError message so it's actually readable. Closes #11435 [court3nay]