Yikes. Good luck with that. ;) The only thing that comes to my mind is the :locals hash you can pass in a call to render :partial. But it'd probably be as much of a pain to figure out how to have your transliterator make those calls as it would be to have it put variable creation code in the controllers...
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christo Karlson Sent: Thursday, October 23, 2008 1:28 PM To: [email protected] Subject: [Rails] Re: Subtemplating with ERB Yes I tested quite a bit with different renders and partials. What I remembered was that it couldn't asked the variables declared before the render-statement. i.e. when you start rendering the subtemplate all the variables from the main template are forgotten. Of course one solution is to declare the variables with @varname in the controller but I am working with a automatic translator from asp and I would really need to have the code in the views for a start with a subtemplating system that works just like a text-include (like in asp with <--#include file) -- 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

