On Wed, Sep 30, 2009 at 10:44 AM, Eric J. Gruber <e...@rumblestrut.com> wrote:
>
> If I was to include a file (such as in a template) in php to use
> across a large number of pages, I would write this:
> <?php include ('navigation.html'); ?>
>
> In turn, every time I used this code, it would “include” (or better
> put, display) the content of navigation.html in the browser.
>
> I can’t figure out how to do this is Rails. When building my layouts,
> how can I include a file like this, like I would in PHP. I have files
> I’d like to include remotely, but not sure how to get this done.
>
> Any ideas?

render :partial => 'foo/bar'


-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to