Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionController::UnknownFormat #3321

Closed
pencilcheck opened this issue Nov 19, 2014 · 1 comment
Closed

ActionController::UnknownFormat #3321

pencilcheck opened this issue Nov 19, 2014 · 1 comment

Comments

@pencilcheck
Copy link

http://stackoverflow.com/questions/19193222/rails-4-devise-3-1-1-actioncontrollerunknownformat-in-deviseregistrationscon

I encounter something similar to the issue above on SO when setting up devise for rails admin with devise 3.4.1.

The problem lies in that in devise/sessions/new.html.erb the resource_name is passed along to generate the url for the form, if I took out all the references to resource_name like so:

<%= form_for(resource, url: session_path) do |f| %>

Then the app will start working.

@josevalim
Copy link
Contributor

It seems to be a conflict with Rails admin. The session_path that Devise uses is a Devise specific helper that will invoke user_session_path, based on the resource name. If it is generating something else, it is because another part of the application defines a session_path that conflicts with Devise one.

mperham added a commit to ryanmccarthypdx/retain_me that referenced this issue May 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants