app/controllers/users_controller.rb
# POST /users
# save user in db
POST /users
save user in db
POST / users save user in db
def create
    @user = User.new(user_params)
    if @user.save
      session[:user_id] = @user.id
      redirect_to '/connections'
    else
      render :new
    end
  end
def create @user = User . new ( user_params ) if @user . save session [ :user_id ] = @user . id redirect_to '/connections' else render :new end end
POST /users
save user in db
POST / users save user in db