simple_form f.hidden_​​field有效,为什么不f.input?

Ada*_*ser 6 ruby-on-rails simple-form

= simple_form_for @foo do |f|

  # this works
  = f.hidden_field :asdf, :value => @some.thing

  # this works
  = f.input :asdf, :as => "hidden", :input_html => { :value => @some.thing }

  # Why doesn't this work, exactly?
  = f.input :title, :as => "hidden", :value => @some.thing
Run Code Online (Sandbox Code Playgroud)

当我查看我的日志时,我看到该值在后一个输入中以空字符串形式出现,但我不清楚为什么会发生这种情况.

Hel*_*tos 9

f.hidden_field是一个ActionView :: Helpers :: FormHelper,f.input属于SimpleForm.

语法类似但有一些差异.