<p>I want to explicitly call a view from my controller.</p>

<p>Right now I have:</p>

<pre><code>def some_action
  .. do something ...
  respond_to do |format|
    format.xml
  end
end
</code></pre>

<p>... then it calls my some_action.xml.builder view.  How can I call some other view?  Is there a parameter in respond_to I'm missing?</p>

<p>Thanks,</p>

<p>JP</p>

See the
Rendering section of the ActionController::Base documentation
for the different ways you can control what to render.
You can tell Rails to render a specific view (template) like this:
```
```
# Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|xml) (in Rails, app/views/weblog/show.erb)
  render :template => "weblog/show"

# Renders the template with a local variable
  render :template => "weblog/show", :locals => {:customer => Customer.new}
```
```