justinfrench/formtastic — Issue #722: Number input type has localized number format as value
Author: shobee
Created: 2011-10-17 12:57:18+00:00
State: open

Hi,

using the following code with a german locale for example

```
<%= semantic_form_for @item do |form| %>
<%= form.inputs do %>
<%= form.input :price %>
<% end %>
<% end %>
```

produces

```html

```

As you can see a localized number is set as value. This leads to an empty input field in some browsers, Safari and Chrome e.g.
A quick fix is to set the input field to string explicitly:

```
<%= form.input :price, :as => :string %>
```

But this disables HTML 5 features for number fields of course. And probably this isn't the desired behaviour.