diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index dcaec8f..37fa43d 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -16,7 +16,7 @@ class MembersController < ApplicationController # GET /members/new def new - @member = Member.new + @member = Member.new(get_params) end # GET /members/1/edit @@ -66,4 +66,8 @@ class MembersController < ApplicationController def member_params params.fetch(:member, {}).permit(:display_name, :legal_name, :pronouns, :email, :identification_number, :category, :address, :joined_on, :expires_on, :wants_mailing_list, :prefers_postal) end + + def get_params + params.permit(:display_name, :legal_name, :pronouns, :email, :identification_number, :category, :address, :joined_on, :expires_on, :wants_mailing_list, :prefers_postal) + end end diff --git a/app/views/members/new.html.erb b/app/views/members/new.html.erb index 72cdfe1..55beea9 100644 --- a/app/views/members/new.html.erb +++ b/app/views/members/new.html.erb @@ -18,7 +18,7 @@