Saturday 18 February 2012

RoR : Migration

Little on ruby On rails Migration


Migrations: If you want to make any changes in the database, then migration come into picture.

How to create migration:
>>rails generate migration migration_name

Tuesday 14 February 2012

How to install Git on window? How to install Git on window?

How to install Git on window?


You can install git on window platform either through cygwin or by downloading msysGit. I've chosen the later one: msysGit



WinCygwinhttp://www.cygwin.com/setup.exe
msysGithttp://code.google.com/p/msysgit/downloads/list

So, go to msysGit and download the window installer or zip file, whatever that suits you.
Extract/install it.
 Once done, add path to git`s bin directory in window Environment PATH variable.

Saturday 11 February 2012

Errors While RoRing


/*****************************ISSUE: 1****************************************/
C:\Ruby192\bin>gem install kgio

Temporarily enhancing PATH to include DevKit...

Building native extensions.  This could take a while...

ERROR:  Error installing kgio:
        ERROR: Failed to build gem native extension.

C:/Ruby192/bin/ruby.exe extconf.rb
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.