Disabling a tenant in a Multi-tenancy Saas app with apartment
Acts_As_Tentant User have access to many tenants
@Tim Dowling In Jumpstart Pro, tenant is stored depending on how you want your app to work. We can use the session, the URL (like basecamp does), the subdomain, or the actual domain. Session is the...
Chris Oliver replied • SolvedGo Rails' Stripe lesson and strong params
+1
Brian Carpenter replied • SolvedIs there a "Rails" way to batch process API requests?
Very helpful, thanks.
Brian Carpenter replied • SolvedShould I continue using Rails 5 or should i use Rails 6?
Nice. Thanks so much Chris!
Joan Gabun replied • SolvedNot Rendering with Stimulus & ActionCable
In case someone stumbles across this and needs an answer. Modify message_list_controller: app/javascript/controllers/message_list_controller.js ``` _cableReceived(data) { this.messagesTarget.i...
Jim Miller replied • SolvedRails/Sendgrid messages are blocked by receiver's servers
Check out what DMARC is, it's the reason your emails are being blocked. https://dmarc.org/ Basically, they're not allowing these emails because they know they didn't originate from the correct ser...
Chris Oliver replied • SolvedTabs with Stimulus
Ok Chris I just joined here and this package makes it worth it. A smooth dropdown menu. Great job and thanks.
Chuck replied • SolvedHow do I calculate a computed value in a model when showing or indexing over that model in its controller?
After sleeping on it, I believe the best way (and the way that requires the fewest queries to Cloud Firestore) is to just download the whole Firestore DB and update from that object every 10 or so ...
Jordan T-H replied • SolvedWorking with ActiveRecord and Google Cloud Firestore
Not sure what the etiquette is for answering or following up one's own question, but I ended up modeling this, because I realized I need some pretty complicated and persistent logic for each docume...
Jordan T-H replied • SolvedDefault Order of Associated Model Collection?
I know right?! Seriously amazing people here. Welcome to the group! 🤓
Chris Oliver replied • SolvedRails 6 Form remote: true Error
Nvm, seems like I just didn't know enough about the new @rails/ujs stuff. Been doing too much Angular and not staying on top of the latest way of doing Javascript in Rails ;-)
Jake Smith replied • SolvedTailwind - own components - yes or no?
@Ricky thanks for this input. i already have started to use more Vue including components / slots.
Bruno Steinmann replied • Solvedhow i plot a profit_loss graph
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 • SolvedTesting and Session Variables
I had a rouge conditional wrapped around my code where I set the enrollment. This fails in testing but passes in production. Tweaked that and now it works fine.
Dan Tappin replied • SolvedHow do I store audio files in production?
I would definitely recommend uploading with Shrine directly to S3 and then serving the files up through Cloudfront CDN. That way the downloads will be quick as possible which is what you want when ...
Chris Oliver replied • Solved[SOLVED] Decrypt S/MIME 'file.xml.p7m' with OpenSSL
Awesome, thanks for posting your solution. I'm sure at some point when I need to use OpenSSL directly, this will come in handy!
Chris Oliver replied • SolvedWhy is application.css working locally but 404 on production server?
The defaults are also manipulated by the `load_defaults` method which can tell Rails to use the defaults from a specific version of Rails. Could be something with that maybe, I'm not sure. https://...
Chris Oliver replied • SolvedResolving Draftsman incompatibility with Activerecord
Probably need to find an alternative gem or approach since Draftsman isn't being maintained anymore.
Chris Oliver replied • Solved