saucy/app/controllers/boards_controller.rb
Hugo Peixoto 9058ed98f7 Adds payment page
Instead of sending all the payment details by email, we're now sending
only a link to a page on this platform. This is to help reduce questions
of whether the emails are from scammers or real.
2023-07-12 19:13:08 +01:00

21 lines
354 B
Ruby

class BoardsController < ApplicationController
before_action :require_login
def edit
@users = User.where(active: true)
@users += Array.new(6 - @users.size) { User.new }
end
def update
User.update_board_members(board_params)
redirect_to edit_board_path
end
private
def board_params
params.require('users')
end
end