Skip to content

Commit

Permalink
Merge pull request #41812 from rokbot/fix/guides-mailer-basics
Browse files Browse the repository at this point in the history
[ci skip] fix on guides mailer_basics avoid ActiveModel::ForbiddenAttributesError
  • Loading branch information
guilleiguaran committed Apr 1, 2021
2 parents 3a32f44 + 2d4006a commit 3583d82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions guides/source/action_mailer_basics.md
Expand Up @@ -195,10 +195,11 @@ waiting for the send to complete.

```ruby
class UsersController < ApplicationController
# POST /users
# POST /users.json
# ...

# POST /users or /users.json
def create
@user = User.new(params[:user])
@user = User.new(user_params)

respond_to do |format|
if @user.save
Expand All @@ -213,6 +214,8 @@ class UsersController < ApplicationController
end
end
end

# ...
end
```

Expand Down

0 comments on commit 3583d82

Please sign in to comment.