#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2007
    Posts
    4
    Rep Power
    0

    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. #2
  3. M3cutters.co.uk
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    119
    Rep Power
    13

IMN logo majestic logo threadwatch logo seochat tools logo