Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 30th, 2007, 08:34 AM
CubanCorona CubanCorona is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 4 CubanCorona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m
Reputation 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?

Reply With Quote
  #2  
Old August 28th, 2007, 12:15 AM
suj's Avatar
suj suj is offline
M3cutters.co.uk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 111 suj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 36 m 3 sec
Reputation Power: 6
Dude have you tried it?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Rails 'render' question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway