(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:
...
...
@@ -136,6 +137,18 @@ def create
@user=User.create(params[:user])
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.