bug fixes
Merge pull request #9 from mayank2707/rails4

bug fixes