A simple example to generate an model's unique and configurable token identifier, using the gem administrate to manage employees and companies and generate a identifier for both objects on the frontend.
What things you need to install the software and how to install them
Have ruby 2.2.2+ installed (for Rails 5).
rails test
For a unique test run:
rails test test/models/company_test.rb
Tests contain only unit tests as I am using the gem administrate where everything is already handled on the frontend part.
Admin part is accessible with the path /admin (http://127.0.0.1:3000/admin in development, for example).
- Administrate - Simple ruby admin dashboard
- Rails 5.1.4
- Sqlite3
Bastien Barbé