A Rails application used as a candidate skills assessment project. It provides a sandbox environment for evaluating practical Ruby on Rails development abilities.
- Ruby 3.3+
- SQLite 3.31+
- Account — A tenant/organization.
- User — A member of an account.
- Space — A documentation site belonging to an account.
- Manual — A collection of documentation content within a space.
bundle exec rspec- Create a has_many relation that only returns the users with a role of "admin". Call it "admin_users".
- #clone_space could be improved. Tell me what you would change.
- Specs get failures when ran. See how many you can fix. The specs should not be changed, just the code in the User model.
- Find out where the search_text filter used on line 4 is defined and describe how it works.
Seed the database with the seeds.rb file, then from the Rails console:
- Find all Spaces that contain a manual with the title "Work in Progress".
- Find all Spaces that have no manuals linked to them.
- Utilize the Account scope named "all_active_accounts" to find all manuals linked to an active account.
- Find the first User with a first_name of "Acme" and a last_name not equal to "Admin".
- There's no definition in routes.rb for the controller at api/users_controller. Create an entry for the actions here.