TIL (Today I Learned) is my collection of short, lightly edited, technical daily learnings. 271 and counting.
Redirect a Path
To redirect a path in Rails: # config/routes.rb get "/authors" => redirect("/designers") This lets you take a difficult-to-type path name and expose it to your users as a simpler path name: # config/routes.rb get "/login" => redirect("/auth/google_oauth2")