ruby on rails - How to give an f.file_field a value -
i have form in rails. it's in show.html.erb, in controller offer
form controller push
however. in last field want have file field, so:
<%= f.hidden_field :image, value: @offer.image %>
i can't apparently. error: paperclip::adapterregistry::nohandlererror in pushescontroller#create
i'm not sure fix is. i've looked on how add value file_field can't find it. help, always, appreciated.
Comments
Post a Comment