Simple_form as: :currency
<p>Want to format text in the input field as currency. Found <a href="http://bentoncreation.com/post/134874453155/custom-currency-input-for-simple-form" rel="nofollow">this</a> solution.<br>
So input builder look like this:</p>

<pre><code>  def input_group(currency, merged_input_options)
    "#{@builder.text_field(attribute_name, merged_input_options)} #{currency_addon(currency)}".html_safe
  end
</code></pre>

<p>But I still need forcing decimal format of a value:</p>

<pre><code>= f.input :price, as: :currency, input_html: { value: number_with_precision(f.object.price, precision: 2) }
</code></pre>

<p>Is it possible to improve builder than it could format number to decimal itself?</p>

<p>Thanks</p>