Ruby on Rails Tuesday, December 30, 2014



On Tuesday, December 30, 2014 10:52:18 AM UTC, Vlad Panainte wrote:
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


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

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/64723e24-f987-44c4-b017-ee7678cc80e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment