Update action_controller_overview.md

This commit is contained in:
Sandeep Navghane 2016-03-15 13:49:40 +05:30
parent f735d41038
commit 3c688c737b

@ -700,7 +700,7 @@ class LoginsController < ApplicationController
end end
``` ```
Now, the `LoginsController`'s `new` and `create` actions will work as before without requiring the user to be logged in. The `:only` option is used to only skip this filter for these actions, and there is also an `:except` option which works the other way. These options can be used when adding filters too, so you can add a filter which only runs for selected actions in the first place. Now, the `LoginsController`'s `new` and `create` actions will work as before without requiring the user to be logged in. The `:only` option is used to skip this filter only for these actions, and there is also an `:except` option which works the other way. These options can be used when adding filters too, so you can add a filter which only runs for selected actions in the first place.
### After Filters and Around Filters ### After Filters and Around Filters