# Using globalize and partial-templates without controller

**URL:** <https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473>\
**Category:** Rails\
**Created:** [February 28, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473 "2008-02-28T16:01:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![der\_guido](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Post date:** [February 28, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473/1 "2008-02-28T16:01:26Z")

</div>

Hi mates,

What I try is using partials without a controller like:

\<%= render :partial=\>“service/templates/my\_template” %\>

that works… if the file is  
app/view/service/templates/\_my\_template.rhtml

BUT now I will use the globalize-engine together with my templates like

app/view/service/templates/\_my\_template.en-GB.rhtml  
app/view/service/templates/\_my\_template.it-IT.rhtml  
… and so on…

but it doesn`t work ;-(

Anyone knows why?!?

thanks for your help!

---

<div class="post-metadata">

**Author:** ![der\_guido](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Post date:** [February 28, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473/2 "2008-02-28T16:07:17Z")

</div>

if nobody else comes up with a really good rails-ready solution,  
then simply open the file and use  
render :inline =\> …  
to render it’s content

---

<div class="post-metadata">

**Author:** ![der\_guido](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Post date:** [February 28, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473/3 "2008-02-28T16:25:35Z")

</div>

Thorsten M. wrote:

> if nobody else comes up with a really good rails-ready solution,  
> then simply open the file and use  
> render :inline =\> …  
> to render it’s content

thanks for your help… So I tried it again… at first I used :template  
not :partial… but I have to create a controller like  
service/templates\_controller.rb … than it works!  
so I think without controllers globalize doesn`t work ☹
