How can I explicitly declare a view from a Rails controller?
ruby-on-rails
Solution
You could do something like the following using render:
respond_to do |format|
format.html { render :template => "weblog/show" }
end
Problem
I want to explicitly call a view from my controller. Right now I have: ``` def some_action .. do something ... respond_to do |format| format.xml end end ``` ... 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? Thanks, JP