Support Rails 2.2
-
cmo-0
it worked for me:
change the line in rtex/lib/rtex/framework/rails.rb
if result.is_a?(String) && @template.respond_to?(:rendered_with_rtex)
to
if result.is_a?(String) && @template.template_format=="pdf"
-
Bruce Williams
I'll have to verify this doesn't clobber Prawn templates.
-
Joachim Garth
cmo-0's solution works for me (+1, Thanks!)
-
Bruce Williams
- State changed from new to open
I've pushed up this workaround to the repo in the 'rails-2.2.2' branch, http://github.com/bruce/rtex/tre...
It will be merged with 'master' once I (or someone else) has the chance to verify compatibility across Rails versions and with the Prawn library.
-
Bruce Williams
- Tag set to prawn, rails, release, v2-branch
- State changed from open to resolved
The compatibility issue with Rails 2.2.2 (and 2.3, edge) should be fixed as of RTeX v2.1.0, released today. Please let me know if you run into any issues.
RTeX 2.1.0 also supports using RTeX alongside Prawn in the same Rails application (the solution recommended by cmo-0 for this ticket sidesteps a check designed to ensure RTeX doesn't 'steal' every .pdf render).
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.