Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

syntax highlight about Rails 4 strong parameters notation in README #357

Merged
merged 1 commit into from

2 participants

Rafael Goulart Rafael Mendonça França
Rafael Goulart

No description provided.

Rafael Mendonça França rafaelfranca merged commit 68dd475 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.md
8 README.md
View
@@ -709,9 +709,11 @@ end
Instead you can stick to a standard Rails 4 notation (as rails scaffold generates) and write:
- def widget_params
- params.require(:widget).permit(:permitted_field, :other_permitted_field)
- end
+```ruby
+def widget_params
+ params.require(:widget).permit(:permitted_field, :other_permitted_field)
+end
+```
In such case you should remove #permitted_params method because it has greater priority.
Something went wrong with that request. Please try again.