
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

Devise with multiple User Models with single login form
11
Gems / Libraries
Hi im trying to have 3 type of devise users but one to have a single login. I need to find a way to make the routes to go to a site/login for all 3 of then.
Im not using the 1 User model with 3 typ...
Roman Storm 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

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 log: https://i.imgur.com/Q4sKtSH.png
![Image of Activity in sg](https://i.imgur.c...
Chris Oliver replied
Solved