Skip to content

Instantly share code, notes, and snippets.

View jvidalba1's full-sized avatar

Mateo Vidal jvidalba1

  • Medellín - Colombia
View GitHub Profile
@jvidalba1
jvidalba1 / gist:8918272
Created February 10, 2014 15:49
Error installing pg gem

This is the error:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/home/likewise-open/VISIONAMOS/jvidal/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb

checking for pg_config... yes

Using config values from /usr/bin/pg_config

If you have a method or attribute in a class, you could invoke the send() method in order to call those
methods or attributes.
In my case, I was confused when I was trying to do a validator for my class Transaction which has
another class associated Account, and there is a class called Entity.
I needed validate that an specific account was created in the Account model and belonged to the
same entity.
====