Permalink
Browse files

Slightly improve the syntax & grammar

  • Loading branch information...
1 parent 168f5b1 commit f76b64c04c89c2f1409fe6b84a5dffa5f83d8b5f @agis agis committed Nov 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 guides/source/action_controller_overview.md
@@ -826,15 +826,15 @@ NOTE: Certain exceptions are only rescuable from the `ApplicationController` cla
Force HTTPS protocol
--------------------
-Sometime you might want to force a particular controller to only be accessible via an HTTPS protocol for security reasons. Since Rails 3.1 you can now use `force_ssl` method in your controller to enforce that:
+Sometime you might want to force a particular controller to only be accessible via an HTTPS protocol for security reasons. Since Rails 3.1 you can now use the `force_ssl` method in your controller to enforce that:
```ruby
class DinnerController
force_ssl
end
```
-Just like the filter, you could also passing `:only` and `:except` to enforce the secure connection only to specific actions.
+Just like the filter, you could also passing `:only` and `:except` to enforce the secure connection only to specific actions:
```ruby
class DinnerController
@@ -844,4 +844,4 @@ class DinnerController
end
```
-Please note that if you found yourself adding `force_ssl` to many controllers, you may found yourself wanting to force the whole application to use HTTPS instead. In that case, you can set the `config.force_ssl` in your environment file.
+Please note that if you find yourself adding `force_ssl` to many controllers, you may want to force the whole application to use HTTPS instead. In that case, you can set the `config.force_ssl` in your environment file.

0 comments on commit f76b64c

Please sign in to comment.