I\'m developing a REST api based on rails. To use this api, you MUST be logged in. Regarding that, I\'d like to create a method me in my user controller that wi
me
resources :users, only: [:index, :update] do collection do get :me, action: 'show' end end
specifying the action is optional. you can skip action here and name your controller action as me.