Answer to my own question:
The problem is that there is also a render_template method in
ActionController:Base with a different method signature:
render_template(template, status = nil, type = "rhtml")
as opposed to ActionView''s:
render_template(template_extension, template, local_assigns = {})
This seems unnecessarily confusing.
JM
On 5/24/05, John-Mason P. Shackelford
<jpshack-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> The docs say:
>
> render_template(template_extension, template, local_assigns = {})
>
> Renders the template which is given as a string as either rhtml or
> rxml depending on template_extension. The hash in local_assigns is
> made available as local variables.
>
> But this code returns ''rhtml'' instead of the result of
the template
> substitution.
>
> render_template( "rhtml",
> "<%= obj_select(grant_id , type, selected)
%>",
> {
> :grant_id => @params[:grant_id],
> :type => @params[:type],
> :selected => @params[:selected]
> }
> )
>
> Anyone else see this?
>
> --
> John-Mason Shackelford
>
> Software Developer
> Pearson Educational Measurement
>
> 2510 North Dodge St.
> Iowa City, IA 52245
> ph. 319-354-9200x6214
> john-mason.shackelford-uJfvbxoDSvxBDgjK7y7TUQ@public.gmane.org
> http://pearsonedmeasurement.com
>
--
John-Mason Shackelford
Software Developer
Pearson Educational Measurement
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
john-mason.shackelford-uJfvbxoDSvxBDgjK7y7TUQ@public.gmane.org
http://pearsonedmeasurement.com