daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Apr 25th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def add_user
  2.         @user = User.new(params[:user])
  3.         if request.post? and @user.save
  4.                 flash.now[:notice] = "User #{@user.name} created"
  5.                 @user = User.new
  6.         end    
  7.   end
RAW Paste Data
Top