This project is archived and is in readonly mode.
accept String value for render_partial :as option
Reported by Akira Matsuda | December 25th, 2010 @ 03:28 PM | in 3.1
Currently, render_partial :as option only accepts a Symbol
value.
This seems a little bit unnatural since it accepts the partial name
by String. IMO it's annoying to use different syntax for "partial
name" and "variable name".
Attached a patch to accept both String and Symbol.
Comments and changes to this ticket
-
Santiago Pastorino February 1st, 2011 @ 02:38 PM
- State changed from new to open
- Milestone set to 3.1
- Assigned user set to Santiago Pastorino
- Importance changed from to Low
This doesn't apply on master, please rebase it.
-
Repository February 1st, 2011 @ 03:04 PM
- State changed from open to committed
(from [5dd803e9b1149f8e6d7de787e0c833c94f48d5a4]) Accept String value for render_partial :as option
[#6222 state:committed]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/5dd803e9b1149f8e6d7de787e0c83...
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>
People watching this ticket
Attachments
Referenced by
- 6222 accept String value for render_partial :as option [#6222 state:committed]