{"id":20513642,"url":"https://github.com/theopencms/user_room","last_synced_at":"2026-04-21T14:03:10.398Z","repository":{"id":71919726,"uuid":"84678592","full_name":"TheOpenCMS/user_room","owner":"TheOpenCMS","description":"User's area based on Devise gem","archived":false,"fork":false,"pushed_at":"2017-06-18T14:37:58.000Z","size":157,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T09:39:45.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheOpenCMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-11T20:42:40.000Z","updated_at":"2017-04-17T10:30:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f20ec197-64b1-45fc-9307-3c01e82e8b0e","html_url":"https://github.com/TheOpenCMS/user_room","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fuser_room","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fuser_room/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fuser_room/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Fuser_room/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheOpenCMS","download_url":"https://codeload.github.com/TheOpenCMS/user_room/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117717,"owners_count":20074438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T21:12:21.839Z","updated_at":"2026-04-21T14:03:10.345Z","avatar_url":"https://github.com/TheOpenCMS.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"```ruby\nThis gem is a part of TheOpenCMS project. https://github.com/TheOpenCMS\n```\n\n## UserRoom\n\nThis gem provides sign-in/log-in functionality and basic user profile management interface. Based on Devise gem.\n\n### Installation\n\n**Install required gems**\n\n```ruby\ngem \"devise\"\ngem \"config\"\ngem \"user_room\"\n```\n\n**Ensure you have users table**\n\n```ruby\nclass AddUsers \u003c ActiveRecord::Migration[5.1]\n  def change\n    create_table :users\n  end\nend\n```\n\n**Run required genetators**\n\n```ruby\nrails generate config:install\nrails generate devise:install\n\nrails generate devise user\nrake user_room_engine:install:migrations\n```\n\nThe following options in the Devise migration must be turned-on\n\n```ruby\n+ Database authenticatable\n+ Recoverable\n+ Rememberable\n+ Trackable\n+ Confirmable\n+ Reconfirmable\n```\n\n**Configurate Devise**\n\nUse `gem 'config'` to configure Devise\n\n```yml\ndevise:\n  mailer_sender: 'mail-sender@example.com'\n  parent_mailer: 'ActionMailer::Base'\n  mailer: 'DeviseMailer'\n```\n\n**Add routing to your App**\n\n```ruby\nRails.application.routes.draw do\n  ::UserRoom::Routes.mixin(self)\nend\n```\n\n**Include `UserRoom` concern in your Model**\n\n```ruby\nclass User \u003c ApplicationRecord\n  include ::UserRoom::User\nend\n```\n\n**Include `UserRoom` in `application_controller.rb`**\n\n```ruby\nclass ApplicationController \u003c ActionController::Base\n  include ::UserRoom::ApplicationController\nend\n```\n\n**Include `UserRoom` in `users_controller.rb`**\n\n```ruby\nclass UsersController \u003c ApplicationController\n  include ::UserRoom::UsersController\n\n  skip_before_action :user_require,   only: [ ... ]\n  skip_before_action :owner_required, only: [ ... ]\n  skip_before_action :admin_require,  only: [ ... ]\nend\n```\n\n```ruby\nrake db:migrate\n```\n\n### MIT License\n\nCopyright (c) 2014-[Current Year] Ilya N. Zykin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopencms%2Fuser_room","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopencms%2Fuser_room","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopencms%2Fuser_room/lists"}