On 3 Apr 2009, at 15:50, mixtli wrote:
> > > For now, I just slapped this in a file in lib and include it in > environment.rb: > For what it's worth i've pluginised this: http://github.com/fcheung/tattler/tree/master Fred > module ActionView > class Template > def render_template(view, local_assigns = {}) > "<!-- TEMPLATE: #{self.template_path} -->\n" + render(view, > local_assigns) > rescue Exception => e > raise e unless filename > if TemplateError === e > e.sub_template_of(self) > raise e > else > raise TemplateError.new(self, view.assigns, e) > end > end > end > end > > > Works in Rails 2.3 anyway. I'm sure there is a cleaner way, and it > should probably be made into an environment specific config option. > But I'm in a hurry right now. > > Thanks for the pointer. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

