Files
fizzy/app/controllers/users/joins_controller.rb
T
2025-11-17 09:12:17 -05:00

17 lines
264 B
Ruby

class Users::JoinsController < ApplicationController
layout "public"
def new
end
def create
Current.user.update!(user_params)
redirect_to landing_path
end
private
def user_params
params.expect(user: [ :name, :avatar ])
end
end