I'm using the following form tag for @jobs which have job_photos included.
<% form_for @jobs, :html => { :multipart => true }, :remote => true do |f| %>
The form works fine non-remote, but if I add the remote = > true, the form submits, returns create.js but doesn't save anything to the DB or error?
You can use Remotipart gem for file uploads with remote
=> true
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With