Skip to content

Instantly share code, notes, and snippets.

@yukas
Created October 5, 2016 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukas/b3d694de1b52fe05581320211378a461 to your computer and use it in GitHub Desktop.
Save yukas/b3d694de1b52fe05581320211378a461 to your computer and use it in GitHub Desktop.
class UsersController < ApplicationController
before_filter :set_user, only: [:show, :edit, :update]
def show
end
def edit
end
def update
end
private
def set_order
@user = User.find(params[:id])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment