Building Something beautiful
Posts for Tutorials Category
CarrierWave MiniMagick and Rails 4 Tutorial

CarrierWave MiniMagick and Rails 4 Tutorial

In this tutorial we will create the ability to upload an image, resize an image based on any defined pixels and whitelist file extension types to protect our database.

Let’s add the gems to our gemfile:


CarrierWave comes with a generator that will create an upload class. You can generate this by running:


This will generate the following:


Uncomment out the following so it looks like this:

Here we have done a few things:

Enabled MiniMagic Created a thumb version of the image White labeled image extension types

Lets create a migration...

Welcome to

About Me

Hello - happy to have you stop by my adventure of building beautiful things.

Here I provide tutorials for DIY software projects - from UI Design to Database Design.

Believe in yourself - you can build anything if you put your mind to it.

xo Katharine

Stay Connected

Instagram Feed