Update Array in rails view form

Hi guys,

I need some help with updating an array using rails view form .

In controller

def foo_params

params.require(:foo).permit(:value,:rvalue)

end

where rvalue is an array. I’ve tried :rvalue=> but no luck

In form I have

<%= form_for :foo, url: foo_path(@foo.foo_value, @foo), method: :put, html: {class: ‘uk-form’} do |builder| %>

<%= builder.label “rvalue”, “Value” %>

<%= builder.text_field “rvalue” , class: “uk-width-1-1” %>

Can you please help?

Thanks

What’s the problem? Is strong parameters not permitting the value or something else?

Fred

? Your "rvalue" param is going to be a string.

I don't understand why you expect it to be an array.