Skip to content

WhiteCrow/pdf_render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

The gem use to render pdf in Rails controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published