i trying change param in nested resource reason add name of parent resource
routes.rb
resources :users, path: 're', param: :username resource :profile end
this how routes looking right now
user_profile post /re/:user_username/profile(.:format) profiles#create new_user_profile /re/:user_username/profile/new(.:format) profiles#new edit_user_profile /re/:user_username/profile/edit(.:format) profiles#edit /re/:user_username/profile(.:format) profiles#show patch /re/:user_username/profile(.:format) profiles#update put /re/:user_username/profile(.:format) profiles#update delete /re/:user_username/profile(.:format) profiles#destroy users /re(.:format) users#index post /re(.:format) users#create new_user /re/new(.:format) users#new edit_user /re/:username/edit(.:format) users#edit user /re/:username(.:format) users#show patch /re/:username(.:format) users#update put /re/:username(.:format) users#update delete /re/:username(.:format)
how can change /re/:user_username/profile/new(.:format) /re/:username/profile/new(.:format)
Comments
Post a Comment