Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Support Rails 2.2

#9

Two reports of compatibility issues with Rails 2.2.

  • An empty response
  • PDF generation not occurring, raw LaTeX being returned

Reported by Bruce Williams · December 6th, 2008 @ 10:50 AM

State: resolved
Milestone: none
Assigned to: Bruce Williams Bruce Williams

Activity

  1. cmo-0
    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"

    December 25th, 2008 @ 05:06 AM

  2. Bruce Williams
    Bruce Williams

    I'll have to verify this doesn't clobber Prawn templates.

    December 25th, 2008 @ 01:36 PM

  3. Joachim Garth
    Joachim Garth

    cmo-0's solution works for me (+1, Thanks!)

    December 26th, 2008 @ 06:26 AM

  4. Bruce Williams
    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.

    January 6th, 2009 @ 06:17 PM

  5. Bruce Williams
    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).

    February 26th, 2009 @ 04:05 PM

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.