I want to create a web app which is a simple HR SaaS. Each user/company which registers will have get a separate table to upload list of employees. In terms of autorization a user/company can access only their table.
It is possible/advisible to take this approach in Rails i.e.
Thanks for the help.
your SaaS app will have more than one table. Ex. Users table, Employees Table, Org Table. You mean you want a multi-tenant app where each companies data is separate from the others. Few ways to do this:
Gems you can use:
if you really want to learn how to build this you can also look at the following book: https://leanpub.com/multi-tenancy-rails
check out Chris's video on the apartment gem (search in episodes)
For anyone interested this post talks about how to setup multi-tenancy using uuid's and not subdomains using postgresql.
Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.