add name to request

This commit is contained in:
sam committed 2022-05-25 14:02:29 +04:30
1 parent 07fcd5fe86
commit c771455197
3 files changed
+10 -3

No files matched your search

+4 -2
View File
@@ -1,16 +1,18 @@
ActiveAdmin.register Message do
csv do
column :title
column(:name)
column(:email)
column(:phone)
column(:description)# preserve case
column(:description)
# preserve case
end
# See permitted parameters documentation:
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
#
# Uncomment all parameters which should be permitted for assignment
#
permit_params :title, :description, :email, :phone
permit_params :title, :name, :description, :email, :phone
#
# or
#
+1 -1
View File
@@ -9,6 +9,6 @@ class MessagesController < ApplicationController
private
def message_params
params.permit(:title, :phone, :description, :email)
params.permit(:title, :phone, :description, :email, :name)
end
end