6
= 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
Quando guardo il mio registro, vedo che il valore sta arrivando come una stringa vuota nell'ultimo input, ma non mi è chiaro perché ciò stia accadendo.simple_form f.hidden_field funziona, perché non f.input?
Mostra il codice HTML per il rendering del modulo. – deefour