vendredi 5 août 2016

checkbox is checked activeAdmin

I got a problem... I had to use active admin for create a custom page -_-.. So I can't interact with my controller from my view.

So I've create many checkbox like this in my view,

input type="checkbox" class="filter" autocomplete="off" name="lundi" value="0" checked>Lundi

I'd like to use them in the same view I want to know if the checkbox is checked or not. So if someone ad a tricks? I'm a new user of rails.




Aucun commentaire:

Enregistrer un commentaire