mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Just initialize options with an empty hash
This commit is contained in:
@@ -294,10 +294,9 @@ module ActionView
|
||||
#
|
||||
# If you don't need to attach a form to a model instance, then check out
|
||||
# FormTagHelper#form_tag.
|
||||
def form_for(record, options = nil, &proc)
|
||||
def form_for(record, options = {}, &proc)
|
||||
raise ArgumentError, "Missing block" unless block_given?
|
||||
|
||||
options ||= {}
|
||||
options[:html] ||= {}
|
||||
|
||||
case record
|
||||
|
||||
Reference in New Issue
Block a user