Hey, I just checked out your source and it looks like your already on the right track.
Right now you are handling the eval with "@view.instance_eval source, template.filename, 1". The compile method will actually handle this for you and make sure the same template doesn't need to be eval'd twice. Instead of returning a string from render, return your "source" string and it will be taken care of for you. On Nov 13, 11:39 pm, brady8 <[EMAIL PROTECTED]> wrote: > I've been attempting to get prawnto (template wrapper around "prawn", > a native ruby PDF generator) working under Rails 2.2. > > Repo is here:http://github.com/thorny-sun/prawnto/tree/master > > To start off, I set it up and it gives an "unknown method 'compile'" > error. > > Looking through the code, as well as Rails... > > So, as far as I can tell between Rails 2.1 -> 2.2, TemplateHandlers > have switched from outputting their template code in a "render" > method, to outputting code to be compiled in a "compile" method. > Prawnto as it stands now doesn't support the compile method, but I'd > like to build that functionality in if possible. > Question is: does anyone know of any resources for Rails 2.2, on > someone's blog or otherwise, that speak to the changes made to > TemplateHandler in Rails, and how to update a plugin from "rendering" > to "compiling" to match? > > Thanks for your time, > Brady --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
