I have Here is my database.yml file When I run rake db:create I am getting the following segmentatin fault ruby 3.0.4p208 (2022-04-12 revisio ...
I have Here is my database.yml file When I run rake db:create I am getting the following segmentatin fault ruby 3.0.4p208 (2022-04-12 revisio ...
After researching this on SO and a very similar issue in Rails' GitHub issues, I'm still unclear what's wrong. My namespaced model subclasses are not ...
Because of this security advisory serialized attributes need to use YAML.safe_load with a safe list of allowed Classes. The problem I am having is th ...
I am getting unpermitted params when I am passing values from UI. The association is many to many between models. posts/_form.html.erb When I ru ...
I'm not sure if this is an issue with my code, ActionMailer, Mail, or maybe even the icalendar gem? A user registers for an event and they get an ema ...
I've got a method like this: def transfers(material, capacity, category, created_at) transfers_range = Transfer.first.created_at..Transfer.last.cre ...
I am working on a project which is done in Rails Hotwire where devise gem has been used for authentication and, in frontend Stimulus.js has been used. ...
I have a Rails initializer (features.rb) that must access a model (Report). This all worked perfectly with Rails 6.1 using Zeitwerk and defaults se ...
I am using resolvers inside query_type: And in my resolvers folder there is a base file: However, when I try to use current_user_id inside the r ...
We're running Rails v6.1.4 and the encrypted credentials constantly break and we can't figure out why... We have four sets of credentials for various ...
I need to capture a field added by a user in a form_for, inside the product show page. My product.rb model as follows: My complaint.rb model as fo ...
I'm trying to upgrade an app from Rails 6 to Rails 6.1.6.1 and I'm running into the following error using credentials. My production credentials file ...
are we have find_or_create_by for jsonb in Ruby? I wanna get an item that has a something title { title: {en: 'something', de: 'something' } instead ...
I search trough internet, but I only find 'how to render partial after update' etc. For now I click on the image, page is refereshing and partial appe ...
I am facing ActiveRecord::NotNullViolation Exception: PG::NotNullViolation: ERROR: null value in column "item_id" violates not-null constraint error w ...
I using Rails 6.1.4, and I need to configure inflections in 2 languages, but when I try to use pluralize, the word not apply pluralize. I need apply ...
I have a few JS functions linked to application.html.erb through channels. They all work fine when the page is loaded. However, if I click any button ...
I have two tables: Transfers and Releases. I need to join them in one ordered array As you can see there is a problem. Each time I want to see anot ...
I'm trying to update my app from Rails 5.2 to 6.1, and use Zeitwerk autoload, and I am having some issues for autoloading /lib classes. I included th ...
Any tips on deploying Rails to AWS Elastic Beanstalk ? I am starting to have real difficulty. Each error I solve leads to another one. Right now it ha ...