[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: rails use case

Tony Targonski

4/11/2005 7:02:00 PM

-----Original Message-----
From: ritchie [mailto:ritchie@ipowerhouse.com]
Sent: Monday, April 11, 2005 2:25 PM
To: ruby-talk ML
Subject: rails use case

is this possible for rhtml outside the views dirs?
---------------------------

Yes.
Rails documentation has the following to say

render(template_path, local_assigns = {})

Renders the template present at template_path (relative to the
template_root). The hash in local_assigns is made available as local
variables.

Meaning you may call an external .rhtml to be rendered before
controller's default kicks in.

--Tony