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 -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -