Mailboxer Issue

1
Rails
I setup the Mailboxer gem in my application. Everything was working fine, except a read conversation kept showing up as unread. I decided to run this command in the rails console: [user].mailbox.co...
MicahBHoward replied
Solved

Nested preference settings with activerecord store

2
Rails
As per this [Episode 191][1] is there any way I can add nested settings? for example: ``` { "wants_reminders": true, "wants_deals_offers": true, "subscribed_to_newsletter": true, "something_here":...
Chris Oliver replied
Solved

Dynamic nested forms with Stimulus *and* has_many :through relationship

4
General
Hi team, I've been following along with the [Dynamic Nested Forms with Stimulus JS](https://gorails.com/episodes/dynamic-nested-forms-with-stimulus-js?autoplay=1) lesson, but I've been attempting ...
David McDonald replied
Solved

PG::InsufficientPrivilege: ERROR: permission denied to create extension "pgcrypto" HINT: Must be superuser to create this extension. : CREATE EXTENSION IF NOT EXISTS "pgcrypto"

1
Databases
Hi everyone, I have been deploying following the guides of this site. However, I had introduced the use of UUID and so I have set the use of extensions for PostgreSQL. Now, when I deploy, I get the...
Julio Cesar Fausto replied
Solved

splitting asset pipeline for front and backend

1
Rails
app has a consumer facing part and large backend/CMS part. our assets (JS and SCSS) are precompiled into a very large file in layouts we have a different layout for front- and backend Is it possib...
Yi Mei Wang replied
Solved

When installing Rails 6 on Ubuntu 20.04 I get an error with the Nokogiri gem

1
Rails
I have been following the instructions at https://gorails.com/setup/ubuntu/20.04#ruby-rbenv. I get the following error, Installing nokogiri 1.10.9 with native extensions Gem::Ext::BuildError: ERRO...
William Jones replied
Solved

Iterating using css grid

13
CSS
Hi Chris - I am using CSS grid for a three-column blog layout. Unfortunately, when I run the do bock it creates three instances of the same post. I guess this is to be expected. Not sure how to ge...
Brian Gilbank replied
Solved

Anyone with experience using Quilljs?

6
Javascript
Hi, I'm lloking forward using http://quilljs.com in a project and wonder if anyone can share his/her experience with such text editor. Related gems are looking pretty outdated (I'm using Rails 5)...
Stas Syritsyn replied
Solved

guard-minitest runs ALL tests not just the ones for the target file changed

1
Testing
I stripped my Guardfile down to this. If I edit a controller guard starts ALL tests. `guard :minitest, all_on_start: false, all_after_pass: false, spring: true do watch(%r{^app/controllers/(.+)_...
Solved

embed youtube in actiontext?

2
General
Chris, I see you already referred to the problem of embedding Youtube videos in actiontext https://github.com/excid3/cfps/blob/3bed21b7aa319ce8e0a98283965ab64df2597488/2020-railsconf.md Did you m...
ya na yandex replied
Solved

rails test attempts to create multiple test databases and fails because it cannot connect

1
Testing
rails 6.0 minitest 5.1 mysql2 gem I'm having (what seems to me) a rather peculiar problem running **rails test** right from the get-go. All the correct databases exist, the rails user has what sh...
Ian Burry replied
Solved

Using custom scaffold templates for Rails models and controllers?

1
Rails
After getting tired of rebuilding all my default scaffold models, views and controllers I decided to create custom templates as outlines on various blogs / SA questions etc. I created: /lib/t...
Dan Tappin replied
Solved

Rails - adding nested attributes then validation fails, new nested attributes are not passed back to the :edit render

1
Rails
I have a Rails app with nested attributes. My MVC works great except when the nested validation fails. Here is my parent model controller: def update if @model.update(model_params) re...
Dan Tappin replied
Solved

Issue deploying Rails app with capistrano

1
Rails
Hello all. This is my first time ever trying to deploy a Rails application. I followed the guide to do so on Ubuntu 20.04, but I run the command `bundle exec cap production deploy` and it gets to t...
William Kennedy replied
Solved

How do you make a tab stay "active" after a page reload

6
Javascript
I have a version of your [Tabs tailwindcss-stimulus component](https://github.com/excid3/tailwindcss-stimulus-components/blob/master/src/tabs.js) up and running. However, I'm struggling to figure o...
Christian Whitesides replied
Solved

How can I render \\n as newlines in <pre><code> elements?

2
Ruby
I need to render the post's body as HTML, but as it is given to me, it has some "\\n", "\\r" and "\\t" characters. How can I replace them with newlines, carriage return and tab characters respectiv...
Solved

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