replaced rails completion to support rails 2, 3 & 4

Closes #31.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>