July 30th, 2007, 09:34 AM
Rails 'render' question
If I call
This will not execute the controller code for the called action, but will only render the view of that action (using locals, etc. from the currently executing action).
render :template => 'different/action'
OTOH, if I call
This both executes the controller action for 'different/action' and renders the view of that action (using locals, etc. from the 'different/action' action.)
render_component :controller=> 'different', :action => 'action', :params => params
Is that correct?
August 28th, 2007, 01:15 AM