Web progamming and database development

Diary of problems and solutions related to web programming, database development and related technologies and platforms.

Installing ImageMagick on Windows to Install RMagick

Before installing RMagick on your machine, it is necessary to install ImageMagick on your machine first. To install ImageMagick, follow the link below:

https://github.com/rmagick/rmagick/wiki/Installing-on-Windows

To install RMagick, include the following line on your gem file

gem 'rmagick'

and run following command line.

bundle install

No comments :

Post a Comment

Easiest way of adding columns to migration table

Easiest way to add columns to the migration table is to run migration from command mode. For example:

If two columns let's say: image (string) and email (string) are to be added to staffs table, then run the statements like this in command mode.

rails g migration add_columns_to_staffs image:string email:string

No comments :

Post a Comment

Differences between nil, empty and blank

nil? - checks to see if variable is referencing an object or not
empty? - may be used to check on various object types like empty string "" or empty array []
blank? - checks for nil? or empty?.

No comments :

Post a Comment