rails/rails — pull request #11570 by joelcogen (2013-07-23 12:42:20+00:00)
Title: text_area should handle nil value option like text_field

Before:

f.text_field :field, value: nil #=>
f.text_area :field, value: nil #=> value of field

`text_field` uses `options.fetch` with a block to specify the default value, whereas `text_area` uses `||`. When given a value of `nil`, this makes `text_field` use the `nil` value because the key exists, whereas `text_area` will go for the default.

After:

f.text_area :field, value: nil #=>

I modified `text_area` to also use a block. This makes both helpers behave the same way, which is IMO the expected behaviour when you explicitly pass `nil` as value.