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! -- Posted via http://www.ruby-forum.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thorsten Mueller
2008-Feb-28 15:07 UTC
Re: Using globalize and partial-templates without controller
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 -- Posted via http://www.ruby-forum.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Guido Holz
2008-Feb-28 15:25 UTC
Re: Using globalize and partial-templates without controller
Thorsten Mueller 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 contentthanks 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 :-( -- Posted via http://www.ruby-forum.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---