Fix routes request for rails 4 from put to patch. Fix typos