(Note: if you are using Rails 4, leave attr_accessible out to accommodate [strong parameters](https://github.com/rails/strong_parameters). Instead add the parameters in the controller (see below).)
In your migrations:
In your migrations:
...
@@ -136,6 +137,18 @@ def create
...
@@ -136,6 +137,18 @@ def create
@user=User.create(params[:user])
@user=User.create(params[:user])
end
end
```
```
If you are using Rails 4, add this to your controller as well:
```ruby
private
# Use strong_parameters for attribute whitelisting
# Be sure to update your create() and update() controller methods.