Ruby on Rails Monday, March 25, 2019

> On Mar 25, 2019, at 7:37 AM, Piyush Chowhan <peyushchowhan7@gmail.com> wrote:
>
> Hi,
>
>
> <td><%= f.check_box :tax_rates, :name => "tax_group[tax_rates][]", :value => tax_rate.id %>
>
> I want to fetch tax_rate.id to other table which is selected in the check box?
>
> The check box which is selected those id's I want to fetch in other table inside a parameter in array.
>
> Multiple check box's are selected want those selected check box id's in to array in the other table of params

Can you say a little more about your problem? It's not clear from the explanation above exactly what you're trying to do. Are you trying to get the values from the array of check boxes in a controller, and assign them to a different set of parameters?

Are you trying to do something in the page itself (maybe with JavaScript) to cause one set of check boxes to act on a different set of check boxes in the same page?

What do your parameters look like (in the development console) when you submit this form?

Walter

--
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/404B3A61-FE90-4FFD-8FBA-301B8ECE09A2%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment