replacing put requests by patch for rails 4 compatibility
Merge pull request #98 from gopesht/make_routes_compatible_with_rails4

replacing put requests by patch for rails 4 compatibility