I'm sure I'm being blind, can you spot something I've missed:
= f.select :region, options_for_select(YAML.load_file("#{Rails.root}/config/regions.yml").collect{|x| [x[1]['name'], x[0]]}), class: "form-control", style: 'display:none;'
Slim just ignores the class & style statements, but everything else looks fine. What am I doing wrong? (rails 4).
Aucun commentaire:
Enregistrer un commentaire