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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -