README.rdoc in rails-latex-2.2.0 vs README.rdoc in rails-latex-2.2.1

- old
+ new

@@ -5,11 +5,11 @@ * Copyright: 2010-2015 Geoff Jacobsen, Jan Baier and contributors * License: MIT-LICENSE == Description -rails-latex is a renderer for rails 3 which allows tex files with erb to be turned into an inline pdf. +rails-latex is a renderer for rails, which allows tex files with erb to be turned into an inline pdf. == Synopsis app/helpers/application_helper.rb: def lesc(text) @@ -83,14 +83,19 @@ @user = user attachments["attachment_name.pdf"] = {:mime_type => 'application/pdf', :content => pdf_attachment} mail( .... ) end +=== Exception handling and debugging + +When LaTeX render fails, +RailsLatex::ProcessingError+ is thrown. In your code, you can catch it and react according to your +needs. To make your life easier, TeX source and log are attached to the exception as instance variables +src+ and +log+. + == Requirements * ruby 1.8 or 1.9 -* rails 3 +* rails 3 or later == Install * gem install rails-latex @@ -104,5 +109,7 @@ == Contributions * Geoff Jacobsen * Tommaso Patrizi * Klaus Reske +* Jan Baier +* Jakub Cerny