Someone wrote:> 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"
actually, in Rails 2.x the standard html view would be:
app/views/weblog/show.html.erb
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---