diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 3ebc6601e59f71f148c5ac9f768234edd9cbd912..8bae6d27964aa452b181215bb102a95252e7a218 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -1237,7 +1237,7 @@ def submit(value=nil, options={}) end def emitted_hidden_id? - @emitted_hidden_id + @emitted_hidden_id ||= nil end private