Answer the question
In order to leave comments, you need to log in
How to add an array of elements to rails 5 white sheet?
There is such a structure
manual_input: [
{
type: 'Акции',
currency: 'USD',
symbol: 'CSCO',
date: '2018-01-23',
amount: '13',
price: '14.23'
commission: '-1.2312211'
},..
]
params.require([]).permit(:type, :currency, :symbol, :date, :amount, :price, :commission)
#так же пробовал
params.permit([{:type, :currency, :symbol, :date, :amount, :price, :commission}])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question