Installing ImageMagick on Windows to Install RMagick
Suresh Raj Bhattarai
1:43 PM
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
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
Easiest way of adding columns to migration table
Suresh Raj Bhattarai
12:21 PM
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.
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
Differences between nil, empty and blank
Suresh Raj Bhattarai
4:53 AM
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 []
Subscribe to:
Comments
(
Atom
)

No comments :
Post a Comment