I tried that, with something like this:
<%= render :partial => 'http://example.com/navigation.html' %> And I got the "We're sorry, but something went wrong." page from my app. I am 100% positive the server I'm trying to include the file from allows files to re used remotely. On Sep 30, 10:48 am, Greg Donald <gdon...@gmail.com> wrote: > 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 Donaldhttp://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 -~----------~----~----~----~------~----~------~--~---