Ruby on Rails SyntaxError using Strong Parms -
i'm trying whitelist mhealth_ids in /app/controllers/clients_controller.rb displayed below.
def client_params params.require(:client).permit(:firstname, :lastname, :dob, :gender_id, :remove_image, :rh_options, :insurance_id, :state_id, :ed_id, :wk_id, :grade_id, :rsource_id, :image, :race_id, :employment_id, :comments, :email, :phone, :address, :city, :state, :zipcode, :name, rhealth_ids:[], :name, mhealth_ids:[]) end
i'm using same syntax :name, rhealth_ids:[]
works fine when :name, mhealth_ids:[]
isn't inserted.
i'm not sure i'm missing. i'm sure it's small.
the arrays go @ end copy pasted , forgot take out second :name.
Comments
Post a Comment