diff --git a/app/controllers/participants_controller.rb b/app/controllers/participants_controller.rb index 7c10712..d9ae4cd 100644 --- a/app/controllers/participants_controller.rb +++ b/app/controllers/participants_controller.rb @@ -83,9 +83,25 @@ class ParticipantsController < ApplicationController end def participant_params - params.require(:participant).permit(:first_name, :last_name, :address, :phone, :email, :mci, :dob, :ssn, :gender, :employer_id) + params.require(:participant).permit( + :first_name, + :last_name, + :address_line_1, + :address_line_2, + :city, + :state, + :zip, + :phone, + :email, + :mci, + :dob, + :ssn, + :gender, + :employer_id + ) end + def employer_params_from_participant(participant) { first_name: participant.first_name, @@ -103,10 +119,6 @@ class ParticipantsController < ApplicationController } end - - - - def employment_params params.require(:employment).permit(:worker_id, :start_date, :end_date) end diff --git a/app/views/participants/index.html.erb b/app/views/participants/index.html.erb index de682f9..b167300 100644 --- a/app/views/participants/index.html.erb +++ b/app/views/participants/index.html.erb @@ -36,12 +36,10 @@ <%= link_to participant, class: 'btn btn-sm btn-secondary' do %> - + <% end %> - - - <%= link_to edit_participant_path(participant), class: 'btn btn-sm btn-info' do %> - + <%= link_to edit_participant_path(participant), class: 'btn btn-sm btn-info' do %> + <% end %>