Skip to content

Instantly share code, notes, and snippets.

@theDazzler
theDazzler / test
Last active August 29, 2015 14:02
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'
end
end
rake routes(first column is blank, there is no path for some reason like 'reviews_appointments')
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