Feeds:
Posts
Comments

Posts Tagged ‘lessons’

Success…….

Sucess is…………when ‘Signature’ becomes an ‘Autograph’

Read Full Post »

In some cases, you may want to have multiple foreign keys map to a single model. The following example explains how the “user_id” and “favorite_id” in a single table(Favourites) map to the User Model(table). class Favourite < ActiveRecord::Base belongs_to :user belongs_to :favourite_user, :class_name => “User”, :foreign_key => “favourite_id” end Now you can play around without [...]

Read Full Post »

True Christmas

Make us worthy, Lord, to serve our fellow men throughout the world who live and die in poverty and hunger. Give them through our hands this day their daily bread, and by our understanding love, give peace and joy.-Mother Teresa Good news is that, there are still many kind-hearted men in the world, they are [...]

Read Full Post »

Migration column type… Converts to MySQL field type… Available options :binary TINYBLOB, BLOB, MEDIUMBLOB, or LONGBLOB2 :limit => 1 to 4294967296 (default = 65536)2 :boolean TINYINT(1) – :date DATE – :datetime DATETIME – :decimal DECIMAL :precision => 1 to 63 (default = 10) :scale => 0 to 30 (default = 0)3 :float FLOAT – :integer [...]

Read Full Post »

Download the ferret gem for windows from http://rubyforge.org/frs/?group_id=1028 (E.g) http://rubyforge.org/frs/download.php/34135/ferret-0.11.6-mswin32.gem Move to the directory where you downloaded the gem (cd Desktop/<download-location>) and do gem install <filename> (E.g) gem install ferret-0.11.6-mswin32.gem You may also need, gem install acts_as_ferret, for your project.

Read Full Post »

When you delete files by emptying the Trash, Mac OS X deletes the information used to access the files but doesn’t actually delete the files. Although the disk space used by deleted files is marked as free space, deleted files remain intact until new date is written over them. Because of this, deleted files can [...]

Read Full Post »

Don’t Blame, but Thank

“Do not blame God for creating the tiger. Thank Him for not giving him wings.”

Read Full Post »

If you are getting the following error, here is a quick fix that will get you working again. You will need to manually copy the libmysql.dll to the rubybin directory. Search for libmysql.dll file and copy it to the rubybin folder and 

Read Full Post »

If you find this error during rails installation, one solution may be this. Setting up http proxy Gem install behind proxy – MAC

Read Full Post »

flash[:notice] is meant only for redirect action, because the message is only cleared after the redirected view request. So if you don’t redirect the request, and you click on the next request, that message will still be displayed. But sometimes, we just want to display custom error messages only for current request without the redirection [...]

Read Full Post »

« Newer Posts - Older Posts »