jeudi 19 janvier 2017

rails select helper without square brackets

If I create select tag like this select(:project_id, nil, in a Rails view file,

in my generated html I get name of select field like project_id[] but I want just project_id,

how do I do that?

Aucun commentaire:

Enregistrer un commentaire