Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created January 15, 2015 21:20
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 gilesbowkett/3597cfcb568dc49164a8 to your computer and use it in GitHub Desktop.
Save gilesbowkett/3597cfcb568dc49164a8 to your computer and use it in GitHub Desktop.
class UsersController < ActionController::Base
def create
User.create(user_params)
end
private
def user_params
params.require(:email).permit(:first_name, :last_name, :shoe_size)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment