How can I add a label to f.select on rails -


i've been trying add label following code

<%= f.select :platform, idea::platform_picking%> 

but keeps ignoring it,so researched why happen , turns out it's because f.select isn't simple_form method, there way can add label it?

use label forms:

<%= f.label :platform%> 

check docs


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

python - Exception while importing pymorphy2 -