diff options
author | Isaac Orme <isorme1@gmail.com> | 2018-03-25 13:02:11 -0700 |
---|---|---|
committer | Isaac Orme <isorme1@gmail.com> | 2018-03-25 13:02:11 -0700 |
commit | 2273f5228acb1bb32454cbb7f8affeff25e83336 (patch) | |
tree | b3fece828e98f474519f389e3537322afdd4c243 /guides/source | |
parent | 9232ba71190eb4e29964d60bd7ba6d7bb6118a43 (diff) | |
download | rails-2273f5228acb1bb32454cbb7f8affeff25e83336.tar.gz rails-2273f5228acb1bb32454cbb7f8affeff25e83336.tar.bz2 rails-2273f5228acb1bb32454cbb7f8affeff25e83336.zip |
Readability fix [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_controller_overview.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index eadd517f07..5b421756e8 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -51,7 +51,7 @@ class ClientsController < ApplicationController end ``` -As an example, if a user goes to `/clients/new` in your application to add a new client, Rails will create an instance of `ClientsController` and call its `new` method. Note that the empty method from the example above would work just fine because Rails will by default render the `new.html.erb` view unless the action says otherwise. The `new` method could make available to the view a `@client` instance variable by creating a new `Client`: +As an example, if a user goes to `/clients/new` in your application to add a new client, Rails will create an instance of `ClientsController` and call its `new` method. Note that the empty method from the example above would work just fine because Rails will by default render the `new.html.erb` view unless the action says otherwise. By creating a new `Client`, the `new` method can make a `@client` instance variable accessible in the view: ```ruby def new |