ruby on rails - How can I Make multi select in simple_fields_for -


I've written the following to accept roles, how many values ​​can it be accepted

  = f.simple_fields_for: content_roles | Role | "Role", collection: rolls all, required: true    

just your role area Add multiple: true to

Like this:

 = role.input: role_id, label: "visible to", like: select, label: "role", compile: roll .all, required: true, multiple: correct    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

php - How can I cram 6+31 numeric characters into 22 alphanumeric characters? -

mysql - where clause in inner join query -