Created
March 2, 2016 20:14
-
-
Save austinklenk/65d142487e4f42a1ab08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Routes File | |
resources :customers, shallow: :true do | |
resources :campers do | |
resources :appointments do | |
resources :orders do | |
member do | |
patch :complete | |
end | |
end | |
end | |
end | |
end | |
-------------------------------------------- | |
##rake routes | |
Prefix Verb URI Pattern Controller#Action | |
bugs GET /bugs(.:format) bugs#index | |
POST /bugs(.:format) bugs#create | |
new_bug GET /bugs/new(.:format) bugs#new | |
edit_bug GET /bugs/:id/edit(.:format) bugs#edit | |
bug GET /bugs/:id(.:format) bugs#show | |
PATCH /bugs/:id(.:format) bugs#update | |
PUT /bugs/:id(.:format) bugs#update | |
DELETE /bugs/:id(.:format) bugs#destroy | |
wall GET /wall(.:format) wall#index | |
shop GET /shop(.:format) wall#shop | |
campers_list GET /campers/list(.:format) campers#list | |
rails_admin /dashboard RailsAdmin::Engine | |
new_admin_session GET /admins/sign_in(.:format) admins/sessions#new | |
admin_session POST /admins/sign_in(.:format) admins/sessions#create | |
destroy_admin_session DELETE /admins/sign_out(.:format) admins/sessions#destroy | |
admin_password POST /admins/password(.:format) devise/passwords#create | |
new_admin_password GET /admins/password/new(.:format) devise/passwords#new | |
edit_admin_password GET /admins/password/edit(.:format) devise/passwords#edit | |
PATCH /admins/password(.:format) devise/passwords#update | |
PUT /admins/password(.:format) devise/passwords#update | |
cancel_admin_registration GET /admins/cancel(.:format) devise/registrations#cancel | |
admin_registration POST /admins(.:format) devise/registrations#create | |
new_admin_registration GET /admins/sign_up(.:format) devise/registrations#new | |
edit_admin_registration GET /admins/edit(.:format) devise/registrations#edit | |
PATCH /admins(.:format) devise/registrations#update | |
PUT /admins(.:format) devise/registrations#update | |
DELETE /admins(.:format) devise/registrations#destroy | |
notes GET /notes(.:format) notes#index | |
POST /notes(.:format) notes#create | |
new_note GET /notes/new(.:format) notes#new | |
edit_note GET /notes/:id/edit(.:format) notes#edit | |
note GET /notes/:id(.:format) notes#show | |
PATCH /notes/:id(.:format) notes#update | |
PUT /notes/:id(.:format) notes#update | |
DELETE /notes/:id(.:format) notes#destroy | |
guests GET /guests(.:format) guests#index | |
POST /guests(.:format) guests#create | |
new_guest GET /guests/new(.:format) guests#new | |
edit_guest GET /guests/:id/edit(.:format) guests#edit | |
guest GET /guests/:id(.:format) guests#show | |
PATCH /guests/:id(.:format) guests#update | |
PUT /guests/:id(.:format) guests#update | |
DELETE /guests/:id(.:format) guests#destroy | |
calls GET /calls(.:format) calls#index | |
POST /calls(.:format) calls#create | |
new_call GET /calls/new(.:format) calls#new | |
edit_call GET /calls/:id/edit(.:format) calls#edit | |
call GET /calls/:id(.:format) calls#show | |
PATCH /calls/:id(.:format) calls#update | |
PUT /calls/:id(.:format) calls#update | |
DELETE /calls/:id(.:format) calls#destroy | |
new_user_session GET /users/sign_in(.:format) users/sessions#new | |
user_session POST /users/sign_in(.:format) users/sessions#create | |
destroy_user_session DELETE /users/sign_out(.:format) users/sessions#destroy | |
user_password POST /users/password(.:format) devise/passwords#create | |
new_user_password GET /users/password/new(.:format) devise/passwords#new | |
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit | |
PATCH /users/password(.:format) devise/passwords#update | |
PUT /users/password(.:format) devise/passwords#update | |
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel | |
user_registration POST /users(.:format) devise/registrations#create | |
new_user_registration GET /users/sign_up(.:format) devise/registrations#new | |
edit_user_registration GET /users/edit(.:format) devise/registrations#edit | |
PATCH /users(.:format) devise/registrations#update | |
PUT /users(.:format) devise/registrations#update | |
DELETE /users(.:format) devise/registrations#destroy | |
users GET /users(.:format) users#index | |
login GET /login(.:format) users/sessions#new | |
import_customers POST /customers/import(.:format) customers#import | |
customers GET /customers(.:format) customers#index | |
POST /customers(.:format) customers#create | |
new_customer GET /customers/new(.:format) customers#new | |
edit_customer GET /customers/:id/edit(.:format) customers#edit | |
customer GET /customers/:id(.:format) customers#show | |
PATCH /customers/:id(.:format) customers#update | |
PUT /customers/:id(.:format) customers#update | |
DELETE /customers/:id(.:format) customers#destroy | |
complete_order PATCH /orders/:id/complete(.:format) orders#complete | |
appointment_orders GET /appointments/:appointment_id/orders(.:format) orders#index | |
POST /appointments/:appointment_id/orders(.:format) orders#create | |
new_appointment_order GET /appointments/:appointment_id/orders/new(.:format) orders#new | |
edit_order GET /orders/:id/edit(.:format) orders#edit | |
order GET /orders/:id(.:format) orders#show | |
PATCH /orders/:id(.:format) orders#update | |
PUT /orders/:id(.:format) orders#update | |
DELETE /orders/:id(.:format) orders#destroy | |
camper_appointments GET /campers/:camper_id/appointments(.:format) appointments#index | |
POST /campers/:camper_id/appointments(.:format) appointments#create | |
new_camper_appointment GET /campers/:camper_id/appointments/new(.:format) appointments#new | |
edit_appointment GET /appointments/:id/edit(.:format) appointments#edit | |
appointment GET /appointments/:id(.:format) appointments#show | |
PATCH /appointments/:id(.:format) appointments#update | |
PUT /appointments/:id(.:format) appointments#update | |
DELETE /appointments/:id(.:format) appointments#destroy | |
customer_campers GET /customers/:customer_id/campers(.:format) campers#index | |
POST /customers/:customer_id/campers(.:format) campers#create | |
new_customer_camper GET /customers/:customer_id/campers/new(.:format) campers#new | |
edit_camper GET /campers/:id/edit(.:format) campers#edit | |
camper GET /campers/:id(.:format) campers#show | |
PATCH /campers/:id(.:format) campers#update | |
PUT /campers/:id(.:format) campers#update | |
DELETE /campers/:id(.:format) campers#destroy | |
GET /customers(.:format) customers#index | |
POST /customers(.:format) customers#create | |
GET /customers/new(.:format) customers#new | |
GET /customers/:id/edit(.:format) customers#edit | |
GET /customers/:id(.:format) customers#show | |
PATCH /customers/:id(.:format) customers#update | |
PUT /customers/:id(.:format) customers#update | |
DELETE /customers/:id(.:format) customers#destroy | |
root GET / customers#index | |
Routes for RailsAdmin::Engine: | |
dashboard GET / rails_admin/main#dashboard | |
index GET|POST /:model_name(.:format) rails_admin/main#index | |
new GET|POST /:model_name/new(.:format) rails_admin/main#new | |
export GET|POST /:model_name/export(.:format) rails_admin/main#export | |
bulk_delete POST|DELETE /:model_name/bulk_delete(.:format) rails_admin/main#bulk_delete | |
history_index GET /:model_name/history(.:format) rails_admin/main#history_index | |
bulk_action POST /:model_name/bulk_action(.:format) rails_admin/main#bulk_action | |
show GET /:model_name/:id(.:format) rails_admin/main#show | |
edit GET|PUT /:model_name/:id/edit(.:format) rails_admin/main#edit | |
delete GET|DELETE /:model_name/:id/delete(.:format) rails_admin/main#delete | |
history_show GET /:model_name/:id/history(.:format) rails_admin/main#history_show | |
show_in_app GET /:model_name/:id/show_in_app(.:format) rails_admin/main#show_in_app | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment