Add documentation for redirections. #11

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

Always

Just for now

View
@@ -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.
+
+
## TODO
* Add "forgot password" functionality