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

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

How to integrate ransack and datatables in rails app?

0
Rails
In my project there is datatables, using ---gem 'jquery-datatables-rails'--gem 'ajax-datatables-rails', '0.4.3'-- . Now my client need to add ransack to it. Ransack worked well with normal table. B...
Emmanu Varghese posted

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

Question regarding the threaded comments! Post titles or link_to post only if the current user is on another users show page.

2
Rails
Hey there all, Would anyone know how you could go about linking to the commented on post? For example if you had a view on the users views for comments.. Listing all the comments by the user how ...
Alex replied

How do you handle the Sitemap for a user generated content website like a social media network?

2
Rails
I want Google to index my dynamic sitemap that gets updated every time a user creates a record
Chris Oliver replied

Use fetch to pass variable in rails

0
Rails
I am creating an app in Rails with Reactjs. I want to pass the value of input field to the controller as a variable so that I can use that variable in def create. How can I do that with fetch?
Sulekha posted

Passing ActiveRecord Relation object to params?

0
Rails
In my controller code, under :index action, I have this sample code @obj = UserSource.select('user.source_categories.code as category_code, user.source_categories.name as cate...
MH posted

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

Import into administrate?

8
Rails
Hi - I used Jumpstart and really like the administrate gem relative to ActiveAdmin. One issue that I am having a hard time is the import add-on doesn't seem to be available like it is for ActiveAdm...
Chris Oliver replied

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

Cookie Replay Attack

1
Rails
In this scenario, there is a Rails Application with a valid user logged in, and the server issued a session cookie, SESSION-ID, to the user. If the SESSION-ID is the cookie that identifies the sess...
Chris Oliver replied

Actiontext used for templates/placeholders

0
Rails
I've got a little business finance management app and I'd love my users to be able to create their own custom templates for quotes/invoices. The way all my competitors do it is through merge fields...
Tim Dowling posted

How to Access rails User session into Laravel Application?

0
Rails
Hello, I have developed two Application one is main website which have all business logic's and functionality in ROR and second is my marketing website which i have developed in Laravel. Now i wan...
HardikShah47 posted

Can't resolve image into URL: undefined method `attachment_url' for #<#<Class:0x0 ...

1
Rails
Can't resolve image into URL: undefined method `attachment_url' for #&lt;#:0x00007f9f6493d770&gt; I spent hours to solve it but nothing !! Env: ruby : ruby 2.6.5p114 | Rails 6.0.2.2 what i did ...
almokhtar replied

Struggling with active nav tabs setting active class

0
Rails
I have an issue I haven't been able to solve. I have a products page set up with some different sections via bootstrap 4 nav tabs. General Info, Images, Pricing etc. I am trying to make it so that ...
spacerobotTR posted

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

How can i switch to slave database in case of master fail?

0
Rails
I have 2 MySQL instances. One is master and the second is a slave. I want to configure the rails app in a way that if the connection to my master database failed, then auto-connect to the slave dat...
hetal sharma posted

How to destroy file with shrine when associated model has deleted ?

0
Rails
hi, someone knows how to delete an uploader file with shrine when the associated model is deleted like purge_later from active_storage.
francel.webdev posted