aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/form_helpers.md
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-09-07 01:33:19 -0700
committerXavier Noria <fxn@hashref.com>2013-09-07 01:33:19 -0700
commitc989a18a74d970be86c537766f14916bd06fe176 (patch)
treecf2ab71e426364c6b82e884b00146acf1345abc1 /guides/source/form_helpers.md
parent6a91a3307ff6556225ab8717617074cea20222e0 (diff)
parent2c8bc2cdcdb7b144b7a583d24922fd8064bcff3d (diff)
downloadrails-c989a18a74d970be86c537766f14916bd06fe176.tar.gz
rails-c989a18a74d970be86c537766f14916bd06fe176.tar.bz2
rails-c989a18a74d970be86c537766f14916bd06fe176.zip
Merge pull request #12155 from jetthoughts/reformat_guides_code_examples
Use Ruby on Rails Coding Conventions for code examples in the guides
Diffstat (limited to 'guides/source/form_helpers.md')
-rw-r--r--guides/source/form_helpers.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index 578cfbe105..39852cb00a 100644
--- a/guides/source/form_helpers.md
+++ b/guides/source/form_helpers.md
@@ -914,9 +914,9 @@ def create
end
private
-def person_params
- params.require(:person).permit(:name, addresses_attributes: [:id, :kind, :street])
-end
+ def person_params
+ params.require(:person).permit(:name, addresses_attributes: [:id, :kind, :street])
+ end
```
### Removing Objects