Rails.application.routes.draw do resource :avatar do member { get :crop } end end