I'm trying to prepend a $
in front of one of my fields and I was able to successfully do so, but without a custom label. This is the code that works:
= f.input :amount do
$
= f.input_field :amount, :label => false, :hint => false, :wrapper => false
This leads me to two confusing points. 1) Why does a label still appear when :label => false
? and 2) why does this fail if I change it to:
= f.input :amount do
$
= f.input_field :amount, label: 'This is my label', :hint => false, :wrapper => false
When I change the label to my custom label the $
moves above the label instead of in front of the field. All help is appreciated, thanks.