DCT Academy > Gems
01
Dec
Upload images using carrierwave gem in rails 4
Upload images using carrierwave gem rails 4 by Aswin Sanakan Introduction Want to upload images into your rails application? CarrierWave is here! CarrierWave is a gem used for all types of file uploads, but for now we’ll be focusing on uploading images using it. Before reading the rest of this article, make sure your Rails […]
23
Nov
How to export to pdf using Rails 4 application
Export to pdf using Rails 4 application by Mahidhar In gem file add gem 'wicked_pdf', '~> 1.1' bundle install Now goto config/initializers/mime_types.rb, add Mime::Type.register "application/pdf", :pdf Because wicked_pdf is a wrapper for wkhtmltopdf, you'll need to install that, too. The simplest way to install all of the binaries (Linux, OSX, Windows) is through the gem [...]