I have this in routes.rb:
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
I want remove the users prefix that devise have by default,users/sign_up, users/login, users/secret/new,…etc
If I put this:
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }, :path => '/'
I get the next error:
RuntimeError
You can only add :omniauthable behavior to one Devise model
Make sure you have
devise_for :usersonly once in your routes file. Otherwise it thinks you’re trying to use omniauth on two models and “Currently, Devise only allows you to make one model omniauthable”.