Commit b7d527f7 authored by Gerardo Gutierrez's avatar Gerardo Gutierrez Committed by Achilleas Pipinellis

Add section for Users, and Create user from console

parent 5efe0536
......@@ -554,6 +554,14 @@ end
## Users
### Create new user
```ruby
u = User.new(username: 'test_user', email: 'test@example.com', name: 'Test User', password: 'password', password_confirmation: 'password')
u.skip_confirmation! # Use it only if you wish user to be automatically confirmed. If skipped, user will recieve confirmation e-mail
u.save!
```
### Skip reconfirmation
```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment