Ruby on Rails Community Forum

Persistent audio via stimulus change audio on click

0
Rails
Hi, I have set up Plyr with stimulus and I have also got the sessions working with application.html.erb so I can have the player on every page in the app via the id params thanks to help here on Re...

Rails for Beginners Part 30: Tweet Validations Discussion

8
General
Working these videos late, I failed to realize my timezone is different from the rails default. You can set your time zone in `config/application.rb`. For example: `config.time_zone = "Eastern Ti...
Peter replied

How to use "ensure" in Ruby Discussion

3
General
Having GoRails sprinkled with some savory dishes like this one would be extremely useful in my opinion. 👍
Sahil replied

Wrapping Exceptions in Ruby Discussion

2
General
Good stuff - really like these "abstract" tools
Sahil replied

Ruby Devise: Inconsistency in current_user in API controller VS. Pre-existing controller

0
General
Hello Everyone, I have started [Rails Training Courses](https://www.igmguru.com/digital-marketing-programming/ruby-on-rails-certification-training/), But I can't able to solve this code. I'm att...
Pankaj Nagla posted

How i can add delivery method with slack?

0
Rails
I cant find any tutorial on how to use noticed gem with slack, can anyone please explain for are the steps for slack integration with his gem I'm new to rails and find it hard to integrate this wit...

I am running into some strange error when I upgraded my app to rails version 6 and pushed to heroku that is connected to Amazon RDS.

0
Databases
I am getting the following error: ActiveRecord::StatementInvalid (PG::InsufficientPrivilege: ERROR: permission denied for relation users.. It is definitely a role issue but I am not sure what coul...

lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require': cannot load such file -- sass

0
Gems / Libraries
Hello GoRail Fam' After trying to update an old Rails app, including Ruby, i got an error when i tried to launch a server, launch a rails update app and much more commands. /Users/basile/.rbenv/v...

MVVM

1
General
Can you please create a video using MVVM pattern?

Searchkick and Anycable-rails hangs server

1
Rails
Hello! I have an issue in my app that I just cannot solve.. I have been using Anycable in production for a year now and it have worked great. Then I added Searchkick to improve the search experienc...
Marcus S replied

How do I find out why Stimulus controllers aren't getting compiled? Asset Pipeline problem

1
Javascript
I updated a Rails 6 app to Rails 7 and changed from Webpacker to esbuild/webpack. Added Stimulus, and after not getting controllers to work tried a basic hello_controller and then searched the appl...
Greg S replied

How do I handle `accepts_nested_attributes_for` with Administrate?

2
General
I'm using `accepts_nested_attributes_for` in one of my models and want to handle the nested attribute (photos) in my Administrate form. It doesn't appear that administrate handles the nested associ...
Sahil replied

Ruby's Array() and Array.wrap Discussion

2
General
Nice, dude! I had no idea this existed. I'll definitely be using this when I go back through and optimize my code. Thanks!
Sahil replied

Flattening Scopes in Ruby Discussion

3
General
Nice work Collin, I dig it.
Sahil replied

Black Friday 2022 Deals on GoRails, courses, and Jumpstart Pro! Discussion

0
General
A life-time subscription would've been nice.
Anjanesh Lekshminarayanan posted

Backing up uploaded files (hundreds of gigs) to S3 using Backup gem without duplication on HD

1
Servers
Let's say I have 400GB of uploaded images inside a 800GB VPN machine. So we're confortably using 50% of storage.Even tough we have our hosting's backup enabled, we want to have an extra backup sitt...

Appdynamic with Ruby on Rails

0
Rails
Hello, I have to configured appdynamic with ruby on rails, I have added gem "gem ‘appdynamics’ " in gemfile, also created appdynamics.yml file with following details: app_name: “My app name” tier...
Ashish Roe posted

How to prevent Turbo from striping params from form URL

0
Rails
After Turbo upgrade: I have a form that is sending a GET request with the following URL /some-url?param1="hello" When the form is submitted param1 is being striped out so it's not being sent. The...
Denis Omerovic posted

Upgrading From Rails 2.0.2 to Current Version

0
Rails
Coming back to Rails after a long time and happy to have found GoRails. Have the fundamental constructs around activerecord and actioncontroller changed? Any suggestions on best approach to migra...
Admin posted

WildCard Let'sEncrypt

1
Servers
Hi! How to use LetsEncrypt wildcard for subdomains. https://gorails.com/guides/free-ssl-with-rails-and-nginx-using-let-s-encrypt

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.