Ruby on Rails Tuesday, December 30, 2014

On Tue, Dec 30, 2014 at 2:52 AM, Vlad Panainte <vlad.panainte@gmail.com> wrote:

> def foo_params
> params.require(:foo).permit(:value,:rvalue)
> end
>
> where rvalue is an array. I've tried :rvalue=>[] but no luck

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

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

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

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
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/CACmC4yCtALPXBF1HoP2JDRLyxfHr40hfKvu3PigTpK3qWSvVPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment