Ruby PDF Reports

    RGhost and RGhost-Rails

    I really like the report resulted from an EPS Template. RGhost do this with perfection - lines and elements very good defined on the document. Quick, precise and light - yeah - do all the job without a lot of processing and memory consumption.

    I started on a project with RGhost, but some issues with my environment after installing the last version of Xcode or after removing the MacPorts made me change the library - unfortunatelly - because I really enjoyed in using it and because I didn’t find other so cool like this one.

    Ok, it isn’t so easy to draw each item on your position - we are talking about PDF reports on web - with Rails - without that bloated IDEs and without report design tools. :P

    Prawn and Prawnto

    Simplicity and no dependencies. There are a lot of missing features - but it works. There are some examples of Prawn use on the Prawnto homepage.

    No EPS support yet - but it does the work fine. I enjoyed the result but there are some issues with the cpu processment from these gems - took a lot of time to generate the report here - maybe this impression was caused by the RGhost - since was my first attempt with Ruby and PDF reports.

    So - both tools do the job - if you want EPS support and a ghostscript dependency isn’t a problem for you - RGhost is the perfect tool. But if you need a pure implementation and no advanced formatting text features - Prawn works fine too.

    For Rails 2.3 In line 619 you must to have:
    my_options = FileColumn::init_options(options, ActiveSupport::Inflector.underscore(self.name).to_s,
    attr.to_s)
    (as the first response) Then you should go to the file: file_column_helper.rb, go to line 79, and change the line: url

    — uninitialized constant FileColumn::ClassMethods::Inflector — WhatDoesThisErrorMean.com

    Working with different time zones? in_time_zone can help!

    >> d = Time.now
    => Fri Dec 04 23:12:59 -0200 2009
    >> d.in_time_zone("Buenos Aires")
    => Fri, 04 Dec 2009 22:12:59 ART -03:00

    Using Rails and SQLite and this error is showed:
    uninitialized constant Encoding

    So you have the wrong sqlite3 GEM installed. Please run: gem uninstall sqlite3
    gem install sqlite3-ruby

    — Retrospectiva / Ticket #731

    Configure Phusion Passenger to test Rails asset_host in development environment - tjhanley.com →

    Rails Summit 2009 →

    (via brupm)

    Can you Describe that Picture? →

    Use the crowd’s knowledge to discover what a certain place or object is called. You can submit your image and once the same description has been submitted twice it will show up online.

    Working with Rails ⋅  GitHub ⋅  Twitter ⋅  Linked In ⋅  Facebook ⋅  Powered by tumblr
    Fork me on GitHub