jnunemaker/mongomapper — Issue #332: Default values don't show up in Rails form_for
Author: RipTheJacker
Created: 2011-10-25 20:48:02+00:00
State: open

It was broken in my app, so I tested it out in a blank application and the default values don't show up when used in form_for.

```ruby
class Recipe
include MongoMapper::Document

key :title, String, :default => "Pizza"

end

<%= form_for @recipe do |f| -%>
<%= f.label :title, "Title" %>
<%= f.text_field :title %>
<% end -%>
```

The value in the text field will be blank. However if you set the value manually like ```@recipe.title = 'hello``` it works fine.