Project

pdf_render

0.0
No commit activity in last 3 years
No release in over 3 years
simple render pdf in the rails view
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

= 0.12.0
~> 4.0.0
 Project Readme

#pdf_render

This project uses MIT-LICENSE. The gem package depend on rails 4.

##Getting started

Add

gem 'pdf_render'

in Gemfile.

After you use bundle to install pdf_render, you can use pdf_reder like it:

  def index
    respond_to do |format|
      format.html
      format.pdf {render pdf: "contents", template: "home/index"}
    end
  end

and add view "home/index.pdf.erb" in app/views in rails application, then you can get pdf in http://localhost:3000/home.pdf

##Run test run

rake test

in gem's dirctory