No release in over 3 years
Installs controllers, services, and configuration to enable multi-tenant authentication using activerecord-tenanted.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 1.0
~> 5.20
>= 7.0

Runtime

~> 0.6, >= 0.6.0
 Project Readme

Rails Multitenant Signup Flow

A Rails generator that installs multi-tenant authentication scaffolding, services, concerns, and configuration based on activerecord-tenanted.

Installation

Add this line to your application's Gemfile:

gem "rails-multitenant-signup-flow", path: "../rails-multitenant-signup-flow"

And then execute:

bundle install

Usage

bin/rails generate rails_multitenant_signup_flow:install

Run with --force to overwrite existing files.

After running the generator

  • Update config/routes.rb so your app has a root route, for example:
     root to: "sign_ups#show"
    Adjust the controller/action to whatever should serve as your landing page.
  • Start the server with bin/rails server and test subdomains locally using lvh.me, which always resolves to 127.0.0.1. For example, sign in at http://app.lvh.me:3000 after creating a tenant named app.