Skip to content

dLobatog/RRPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RRPDF

PDF Renderer for Rails.

Simple enough, this gem lets you render PDFs out of your views.

To install this gem, add the following line to your Gemfile:

gem ‘rrpdf’, :git => git://github.com/eLobato/RRPDF.git

In order to render a pdf out of your view, include this

format.pdf { render :pdf => "pdf_name" }

or this

render :pdf => "pdf_name", :template => "your_template"

in your controller.

And match the action with the appropriate address, so go to routes.rb and include something like

match "/yourpdfile(.:format)", :to => "your_controller#your_action"

Check out test/dummy/ for a live example of this

This project rocks and uses MIT-LICENSE.

About

PDF Renderer for Ruby on Rails 3+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published