87d81e608b
- Drop from 313 unused routes to 306 unused routes - Use a namespace for the account-related resource routes - Controllers are nested under the "Account" module now - Move views from "accounts/" to "account/"
11 lines
281 B
Ruby
11 lines
281 B
Ruby
class Account::JoinCodesController < ApplicationController
|
|
def show
|
|
render svg: RQRCode::QRCode.new(join_url(Account.sole.join_code)).as_svg(viewbox: true, fill: :white, color: :black)
|
|
end
|
|
|
|
def update
|
|
Account.sole.reset_join_code
|
|
redirect_to users_path
|
|
end
|
|
end
|