|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Rails 'render' question
If I call
Code:
render :template => 'different/action' 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). OTOH, if I call Code:
render_component :controller=> 'different', :action => 'action', :params => params This both executes the controller action for 'different/action' and renders the view of that action (using locals, etc. from the 'different/action' action.) Is that correct? |
|
#2
|
||||
|
||||
|
Dude have you tried it?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Rails 'render' question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|