Showing posts from August, 2015

Install postgresql 9.4 and configure it for Ruby on Rails

PostgreSQL is available in the default repositories. So enter the following command from the Terminal to install it. sudo apt-get install postgresql postgresql-contrib If you’re looking for other versions, add the PostgreSQL repository, and install it as shown below.

Convert html to pdf using wiked pdf gem(Ruby on Rails)

Today I will write how to convert html to pdf. For this we will use wiked_pdf gem. It’s a nice gem to convert. 1. put this on your gem file gem ‘wicked_pdf’, github: ‘mileszs/wicked_pdf’ gem ‘wkhtmltopdf-binary’