Disabling a tenant in a Multi-tenancy Saas app with apartment

3
Rails
Hey everyone, I was launching a multi-tenant app and want to know if there is a way through which we can disable a tenant if they cancel the subscription without deleting their data. I can add thi...
Solved

Acts_As_Tentant User have access to many tenants

6
General
I've just created this enhancement for acts_as_tenant and wondering if anyone else would find this useful - https://github.com/ErwinM/acts_as_tenant/issues/231 Currently acts_as_tenant expects a s...
Chris Oliver replied
Solved

Go Rails' Stripe lesson and strong params

3
Rails
Hello, I recently watched the [Go Rails Stripe tutorial](https://gorails.com/episodes/stripe). In it, Chris creates subscriptions like this: ```rb def create_subscription customer = # set custo...
Brian Carpenter replied
Solved

Is there a "Rails" way to batch process API requests?

2
Rails
I have a situation where I'm generating N post requests for given table in a vuejs app, but sending them to the rails controller one by one. I'd like to batch them all up in the app as a JSON obj...
Brian Carpenter replied
Solved

Should I continue using Rails 5 or should i use Rails 6?

2
Rails
As we all know the Rails is currently on version 6.0.3 as of May 06, 2020 (6.5 KB) Some developers say that it is still not stable and must need to wait for a little while before migrating to th...
Joan Gabun replied
Solved

Not Rendering with Stimulus & ActionCable

1
Javascript
Hi, I'm having some issues with Stimulus and I was hoping that someone could review this code and see if they see anything that I missed. The Rails part is working and saving to the db. I'm sure t...
Jim Miller replied
Solved

Rails/Sendgrid messages are blocked by receiver's servers

1
Rails
Messages blocked by all receiver's servers(mail.ru, gmail.com). ![console](https://i.imgur.com/Q4sKtSH.png) console log: https://i.imgur.com/Q4sKtSH.png ![Image of Activity in sg](https://i.imgur.c...
Chris Oliver replied
Solved

Tabs with Stimulus

7
Javascript
Hi Chris - I've been following your guide on adding tabs with Stimulus here: https://github.com/excid3/tailwindcss-stimulus-components I am not using Tailwind but everything is working. However, w...
Chuck replied
Solved

How do I calculate a computed value in a model when showing or indexing over that model in its controller?

1
Rails
I'm new to Rails but not new to programming or webdev. I have a `Student` model that uses a service object to pull data from Google Cloud Firestore for its `level` attribute, an integer. I have ho...
Jordan T-H replied
Solved

Working with ActiveRecord and Google Cloud Firestore

1
Rails
I'm pretty new to Rails, and I was wondering what the "right" way of architecting a small app would be given the following scenario. Users create Rooms, then from there add to them a number of refe...
Jordan T-H replied
Solved

Default Order of Associated Model Collection?

5
Databases
Hey all, I'm working on a side project where I recently switched from SQLite to Postgres in preparation for deployment. So, I replaced the `gem sqlite3` with `gem pg` in my Gemfile, ran`bundle i...
Chris Oliver replied
Solved

Rails 6 Form remote: true Error

2
General
Hi, all! I am following along with the video on how to make a chat application using action cable. In the video, I believe Rails 5 is being used, however, I wanted to try it out with Rails 6. Eve...
Jake Smith replied
Solved

Tailwind - own components - yes or no?

4
CSS
i have started with tailwindcss yesterday the first time and must say - wow! but something is confusing me from the beginning. in tutorials/videos etc. everybody talk about: do not write your own ...
Bruno Steinmann replied
Solved

how i plot a profit_loss graph

0
Rails
i have income,expense, user controller i want to plot a graph of currrent user profit i calculated it in model. def total_expense expenses.pluck(:amount).sum end def total_incomes inc...
Ahmedzain posted
Solved

Testing and Session Variables

1
Testing
In my Rails 5 app I am using Pundit for authorization with a custom context. I have a multi-tenant application and I have an `Enrollment` model that joins my `User` and `Tenant` model. This was a...
Dan Tappin replied
Solved

How do I store audio files in production?

2
Rails
Hey guys! I'm working on building a Rails app for a friend of mine - this app will be for her to host episodes of her podcast. I've already decided to use something like [SoundManager](http://www....
Chris Oliver replied
Solved

[SOLVED] Decrypt S/MIME 'file.xml.p7m' with OpenSSL

7
Ruby
I am trying to implement a decoder for a bunch of files (e-bills with extension .xml.p7m) in my rails application within a specific helper. My goal is to upload the encripted files and read them p...
Chris Oliver replied
Solved

Why is application.css working locally but 404 on production server?

5
General
My css works perfect locally, but I get a 404 error for applicaiton.css once deployed. I generated my base app using Jumpstart free version. I confirmed app css is generated on the server in the ...
Chris Oliver replied
Solved

Resolving Draftsman incompatibility with Activerecord

1
Gems / Libraries
I installed the draftsman gem on a new install of jumpstart pro but it is conflicting with Activerecord. Is their a workaround? Bundler could not find compatible versions for gem "activerecord"...
Chris Oliver replied
Solved

how to process images with carrierwave and delay_job

1
Rails
I am trying to process the versions of the images with carrierware I want to send that process to a queue
Juan Alexander Rodríguez Álvarez replied
Solved