Skip to content

Instantly share code, notes, and snippets.

@tisba tisba/00_routes.rb
Last active Dec 30, 2015

Embed
What would you like to do?
I want to change "edit_user_registration_path" to "benutzer/einstellungen" (from "benutzer/edit" now). How can I do that? What is the key in "path_names" I have to set?
devise_for :users, path: 'benutzer',
path_names: {
sign_in: "anmelden",
sign_up: "registrieren",
sign_out: "abmelden",
edit: "einstellungen"
}
new_user_session GET /benutzer/anmelden(.:format) devise/sessions#new
user_session POST /benutzer/anmelden(.:format) devise/sessions#create
destroy_user_session DELETE /benutzer/abmelden(.:format) devise/sessions#destroy
user_password POST /benutzer/password(.:format) devise/passwords#create
new_user_password GET /benutzer/password/new(.:format) devise/passwords#new
edit_user_password GET /benutzer/password/edit(.:format) devise/passwords#edit
PATCH /benutzer/password(.:format) devise/passwords#update
PUT /benutzer/password(.:format) devise/passwords#update
cancel_user_registration GET /benutzer/cancel(.:format) devise/registrations#cancel
user_registration POST /benutzer(.:format) devise/registrations#create
new_user_registration GET /benutzer/registrieren(.:format) devise/registrations#new
edit_user_registration GET /benutzer/edit(.:format) devise/registrations#edit
PATCH /benutzer(.:format) devise/registrations#update
PUT /benutzer(.:format) devise/registrations#update
DELETE /benutzer(.:format) devise/registrations#destroy
user_confirmation POST /benutzer/confirmation(.:format) devise/confirmations#create
new_user_confirmation GET /benutzer/confirmation/new(.:format) devise/confirmations#new
GET /benutzer/confirmation(.:format) devise/confirmations#show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.