Skip to content

Instantly share code, notes, and snippets.

View test.txt
git checkout master
backup master: git branch backup
Make a new branch from your head.: git branch test
Switch to that and delete the old branch name.: git checkout test
git branch -D master
Checkout the last clean rev from your fork.: git checkout master
View test
I want the URL to be /appointments/review/HSGy56GJS67 where the last part is a unique token that identifies the review
routes file
resources :appointments do
collection do
get 'review/:review_token', :to => 'appointments#review_appointments'
rake routes(first column is blank, there is no path for some reason like 'reviews_appointments')