Note that there are some explanatory texts on larger screens.

plurals
  1. PORails 3 + Devise - How to get nested resources / routes to work?
    text
    copied!<p>In my routes.rb file, the only entries I have are:</p> <pre><code>devise_for :users, :path =&gt; "accounts" resources :users do resource :profile end </code></pre> <p>but when I run "rake routes" I can see that there are still mapped resources for the user i.e new, create, edit, update etc...this is causing a conflict with some of the devise paths such as new_user_registration_path</p> <pre><code> new_user_session GET /accounts/sign_in(.:format) devise/sessions#new user_session POST /accounts/sign_in(.:format) devise/sessions#create destroy_user_session DELETE /accounts/sign_out(.:format) devise/sessions#destroy user_password POST /accounts/password(.:format) devise/passwords#create new_user_password GET /accounts/password/new(.:format) devise/passwords#new edit_user_password GET /accounts/password/edit(.:format) devise/passwords#edit PUT /accounts/password(.:format) devise/passwords#update cancel_user_registration GET /accounts/cancel(.:format) devise/registrations#cancel user_registration POST /accounts(.:format) devise/registrations#create new_user_registration GET /accounts/sign_up(.:format) devise/registrations#new edit_user_registration GET /accounts/edit(.:format) devise/registrations#edit PUT /accounts(.:format) devise/registrations#update DELETE /accounts(.:format) devise/registrations#destroy user_profile POST /users/:user_id/profile(.:format) profiles#create new_user_profile GET /users/:user_id/profile/new(.:format) profiles#new edit_user_profile GET /users/:user_id/profile/edit(.:format) profiles#edit GET /users/:user_id/profile(.:format) profiles#show PUT /users/:user_id/profile(.:format) profiles#update DELETE /users/:user_id/profile(.:format) profiles#destroy users GET /users(.:format) users#index POST /users(.:format) users#create new_user GET /users/new(.:format) users#new edit_user GET /users/:id/edit(.:format) users#edit user GET /users/:id(.:format) users#show PUT /users/:id(.:format) users#update DELETE /users/:id(.:format) users#destroy </code></pre> <p>How can I get rid of the additional user resources which are appearing at the bottom of this output?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload