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 -~----------~----~----~----~------~----~------~--~---

