Ruby on Rails Community Forum
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
Have you taken the 2020 Ruby on Rails Developer Community survey, yet?
1
Rails
This is more of an invite. We're conducting our bi-annual Rails survey where we dig into some details on versions being used, hosting environments gem usage, third-party services, etc.. so that we ...
Chris Oliver replied
How do I protect myself against brute-force attacks when using Cockpit server administration?
0
Servers
When using Cockpit, I feel that it opens up a big vulnerability as the browser login allows unlimited attempts to login. Once the brute-force is successful, the attacker will be able to run command...
Yi Mei Wang posted
Shopify App injecting Liquid code into theme files
0
Ruby
I'm developing a new Shopify app and need some Ruby on Rails dev help.
When a Shopify Merchant installs my app, we ask the Merchant to manually add some Liquid code to their Theme files.
But my S...
Adam Siegel posted
Deploy Ruby project on Ubuntu 18.0
1
Servers
Hi,
I am referring the doc "https://gorails.com/deploy/ubuntu/18.04#nginx" for deploy the project.
After running the command "cap install STAGES=production"
I got error list :
LoadError: cannot loa...
bhavya replied
Seed local database
2
Ruby
HI,
I am new in Ruby and i am set up the open source project on Ubuntu and stuck in some point.
$ bundle exec rails db:setup
When i execute the above command then its not running.
I was execute thi...
bhavya replied
How can I force cloudfront assets to use http2?
0
Rails
in our app we have an image library which stores images in S3 linked to cloudfront.
cloudfront configured for http2
server is puma + nginx
problem is performance seems like all assets served from c...
Peter vande Put posted
how i can manage links , create new links , modify exiting links ?
1
Rails
hey guys , when i generate a scaffold the default link of edit it's link like this edit_participation_path(participation) , in my case i need to change the edit to changer_participation_path(partic...
Chris Oliver replied
How to use Sweet Alert to replace standard confirm dialog
9
General
I'm trying to use Sweet Alert to replace the standard Rails confirm dialog. I can get it working in a plain new Rails app but not in my production app.
I'm using the *sweet-alert-confirm* gem here...
Sbstn replied
How i put a link or button to back to the last search in a form with method GET
1
Rails
Hi, I got a form through GET to search employees, when this give me a result through some filters (code, name, status), i can go to one employee in particular, but before i see the show page of thi...
Chris Oliver replied
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
Jekyll as a support page?
2
Gems / Libraries
Can you use Jekyll (https://github.com/jekyll/jekyll) as a embedded help page?
From the showcase section this is pretty much what I am looking for:
https://dev.twitch.tv/docs/ (says built with Je...
Dan Tappin replied
How do I know how many threads does my app need?
0
Servers
I'm working on an app that does serves http but also has some parts where ActionCable is used. How do I know how many threads does my app need? Is there a rough number?
How does websocket occupy t...
Yi Mei Wang posted
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
Sidekiq file access
0
Rails
I have an application on Heroku that has a Postgres database and sidekiq running on a hosted Redis instance.
A tool I want to rely on is able to generate JSON output when an output file is specifi...
Cheerio posted
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
How to Access rails User session into Laravel Application?
0
Ruby
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...