File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 629629The ` render ` method here is taking a very simple hash with a key of ` :plain ` and
630630value of ` params[:article].inspect ` . The ` params ` method is the object which
631631represents the parameters (or fields) coming in from the form. The ` params `
632- method returns an ` ActiveSupport::HashWithIndifferentAccess ` object, which
632+ method returns an ` ActionController::Parameters ` object, which
633633allows you to access the keys of the hash using either strings or symbols. In
634634this situation, the only parameters that matter are the ones from the form.
635635
@@ -639,7 +639,7 @@ If you re-submit the form one more time you'll now no longer get the missing
639639template error. Instead, you'll see something that looks like the following:
640640
641641``` ruby
642- {" title" =>" First article !" , " text" =>" This is my first article." }
642+ < ActionController :: Parameters {" title" =>" First Article !" , " text" =>" This is my first article." } permitted: false >
643643```
644644
645645This action is now displaying the parameters for the article that are coming in
You can’t perform that action at this time.
0 commit comments