Devise 3.x, Rails4.x で create時に、ActionController::UnknownFormat in Devise::RegistrationsController#new が出るとき
Deviseを使ってユーザー登録を使用としたら、Devise::RegistrationsControllerの方のrespond_withのあたりでActionController::UnknownFormatエラーが吐かれました。
ルーティングはこんな感じ
devise_for :users, :controllers => { :sessions => "users/sessions", :registrations => "users/registrations", :passwords => "users/passwords", :omniauth_callbacks => "users/omniauth_callbacks", :confirmations => "users/confirmations" }
コントローラーはそれぞれoverrideしたりなんかして使っているのですが、どうやら原因はformの方にあるようでした。
= simple_form_for(resource, as: resource_name, url: user_registration_path(resource_name)) do |f| ↓↓ = simple_form_for(resource, as: resource_name, url: user_registration_path) do |f|
これで通りました。