1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/controllers/membership_applications_controller.rb

24 lines
600 B
Ruby

# frozen_string_literal: true
class MembershipApplicationsController < ApplicationController
# GET /membership_applications/new
def new
@membership_application = MembershipApplication.new
authorize @membership_application
end
# POST /membership_applications
def create
@membership_application =
MembershipApplication.new permitted_attributes MembershipApplication
@membership_application.account = current_account || Account.new
authorize @membership_application
return render :new unless @membership_application.save
redirect_to root_url
end
end