# "Rendering a template", API doc missing "2.x"?

**URL:** <https://www.ruby-forum.com/t/rendering-a-template-api-doc-missing-2-x/139451>\
**Category:** Rails\
**Created:** [June 4, 2008, 12:54am UTC](https://www.ruby-forum.com/t/rendering-a-template-api-doc-missing-2-x/139451 "2008-06-04T00:54:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![someone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@someone](https://www.ruby-forum.com/u/someone)\
**Post date:** [June 4, 2008, 12:54am UTC](https://www.ruby-forum.com/t/rendering-a-template-api-doc-missing-2-x/139451/1 "2008-06-04T00:54:14Z")

</div>

The api document for “Rendering a template” at  
[http://api.rubyonrails.com/classes/ActionController/Base.html#M000452](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”

---

<div class="post-metadata">

**Author:** ![someone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@someone](https://www.ruby-forum.com/u/someone)\
**Post date:** [June 4, 2008, 2:51am UTC](https://www.ruby-forum.com/t/rendering-a-template-api-doc-missing-2-x/139451/2 "2008-06-04T02:51:13Z")

</div>

Someone wrote:

> The api document for “Rendering a template” at  
> [Peak Obsession](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”

actually, in Rails 2.x the standard html view would be:  
app/views/weblog/show.html.erb
