Ruby

How to solve different problems with Ruby.

Run SQL updates in Rails migration

An approach to running rails migration sql code after adding a column

Http status Codes in Rails

A list of http status codes in rails

Add Character Encoding to Heroku buildpack

Using charlock homes library in your heroku application

Add Image Processing to Heroku buildpack

Process images in your heroku application

Cancel Recurly Subscription Programmatically

Different ways to cancel a recurly subscription using the ruby sdk.

Convert a string to class

Change a string into a class reference in ruby

Custom Ruby buildpack

Adding compilation steps to ruby build pack for heroku

Custom tag with attributes in Jekyll

Process attributes in a tag within Jekyll

Eager load children in ActiveRecord

Using includes to eager load active record relationships

Fix Issue with Psych Yaml gem on RVM and OSX

How to fix the issue with path2class error using RVM and OSX

Fix the handlebars.vm error

Mismatches of gems sometimes cause issues with handlebars.vm or other gems

Flatten a Hash into a String

Using join to create a key value string

Recover a Load Error

Installing a gem from a load error

Rspec tips and tricks

How to run multiple and individual tests. How to add details to the tests.

Size of active record collection

Know the size method to use for activerecord lists

Unique list with records

When you need to have a uniq array with a given set of records

Url encode strings

Using standard ruby features to encode strings

Use modules for testing

An approach to mocking behavior can be using modules to mock interactions