The api document for “Rendering a template” at
http://api.rubyonrails.com/classes/ActionController/Base.html#M000452
has:
Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|
xml) (in Rails, app/views/weblog/show.erb)
render :template => “weblog/show”
Is it missing 2.x after Rails? Should it be the following?
Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|
xml) (in Rails 2.x, app/views/weblog/show.erb)
render :template => “weblog/show”
Someone wrote:
The api document for “Rendering a template” at
Peak Obsession
has:
Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|
xml) (in Rails, app/views/weblog/show.erb)
render :template => “weblog/show”
Is it missing 2.x after Rails? Should it be the following?
Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|
xml) (in Rails 2.x, app/views/weblog/show.erb)
render :template => “weblog/show”
actually, in Rails 2.x the standard html view would be:
app/views/weblog/show.html.erb