开发者

Checkbox array in ruby

In Controller wow do I get an array of checkboxe开发者_Go百科s which are unchecked and defined in view page. In the view page i have an array of checkboxes with corresponding images. SO I need to get these array of checkboxes in a controller and check if it is checked and then pass the corresponding images with items checked to the view page again.


It depends on what you name the checkboxes in the view. The values will be available in the controller in the params[] hash/array. To see how how the values are formatted looks the server log when to submit the form and you will see all submitted params.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜