Add documentation for redirections. #11

merged 1 commit into from Oct 13, 2012
Jump to file or symbol
Failed to load files and symbols.
+9 −0
Diff settings


Just for now

@@ -119,6 +119,15 @@ Using the example above, you will have the following routes locally:
* `logout_url` points to "/logout" - Make sure to use the `delete` method to logout.
+### Redirection
+You can customize the paths used to redirect users after login, logout and registration by overriding the corresponding methods in your ApplicationController, or specific controllers, as needed.
+* `after_login_path` is used after the user logs in.
+* `after_logout_path` is used after the user logs out.
+* `after_registration_path` is used after the user registers.
* Add "forgot password" functionality