I have a form for updating an image from
<%= form_for current_user, url: update_image_user_path(current_user), method: :post, html: {multipart: :true, remote: true}, :authenticity_token => true do |f| %>
action has
respond_to do |format| format.js format.html end
but I get the following error:
ActionView::MissingTemplate - Missing template users/update_image, application/update_image with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}.
I do not have update_image.html.erb template, but from the error I find out that the request is not sent as js format
What am I missing?
ajax ruby-on-rails forms ruby-on-rails-4
Nick ginanto
source share