ruby-on-rails-6 Questions
1
I am trying to upload a file in rspec and use that file in my controller. Everything worked fine in Rails 4 but now in Rails 6, the Rack::Test::UploadedFile hash when received in controller, my tem...
Hodgkins asked 22/1, 2020 at 4:39
3
I am upgrading one of my news app to Rails 6.0.0. While working around I got a problem using Rich Text. My app is pointing the rich text body field instead of the my existing table body field.
Is...
Melindamelinde asked 29/8, 2019 at 3:55
4
Solved
I have a Rails 6 app that uses Active Storage to store multiple images to a model (Activity) with has_many_attached.
I don't understand how to append extra images instead of replacing the existin...
Mande asked 18/1, 2020 at 19:13
3
Currently I'm trying to display .HEIC images in Rails 6. I'm using ActiveStorage ImageMagic to use variant to display jpg. Basically I'm trying to use
mogrify -format jpg myimage.heic
In the im...
Laurynlausanne asked 14/3, 2020 at 18:52
3
Solved
Simple question, but somehow the answer escapes me.
In moving to Rails 6 with Zeitwerk, I get:
Please, check the "Autoloading and Reloading Constants" guide for solutions.
(called from <top (...
Trochaic asked 26/9, 2019 at 23:21
14
Solved
I needed the new function in ActiveStorage to resize_to_fill so I upgraded to Ruby 2.5.1 and Rails 6.
ruby '2.5.1'
gem "rails", github: "rails/rails"
When I stopped, then rest...
Horsepowerhour asked 21/12, 2018 at 2:26
5
I have some Rails 6 applications, deployed at AWS, via Opsworks.
After upgrading to Rails 6 the app blocks the health check of its own instance and it causes the load balancer to take the instance...
Countercheck asked 10/9, 2019 at 22:1
2
I am trying to make parallel tests using rspec and rails 6.
According to their documentation, it is just required to add PARALLEL_WORKERS=15 where 15 is the number of workers. However, this works f...
Affright asked 27/7, 2021 at 17:53
4
After upgrading to Rails 6 I am noticing that default mailer's .deliver_later is not working the same as in Rails 5.
Configuration:
config.active_job.queue_adapter = :inline
When running Mail...
Clairvoyant asked 3/9, 2019 at 17:8
3
Solved
I swear I've read the docs and I think I have a basic understanding of the principles, but I can't for the life of me figure out where I'm loading these constants inappropriately.
I'm working to up...
Marlite asked 1/3, 2021 at 17:16
4
Solved
This is an issue that has been going on for quite some time and to this day, I still have not found the solution. I have seen some similar issues but not quite what I have been experiencing.
I hav...
Sjambok asked 5/2, 2020 at 20:28
3
Solved
I am trying to set up a Stripe payment form for a Rails 6 project, and I am not able to access my stripe secret keys. I am getting an error NoMethodError (undefined method `[]' for nil:NilClass) Wh...
Karaganda asked 13/8, 2020 at 18:45
2
Solved
From the console I cannot do any operation that touches the database. I get a Segmentation fault.
.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/pg-1.1.4/lib/pg.rb:56: [BUG] Segmentation fault at ...
Toni asked 28/11, 2019 at 13:28
2
Solved
My initial commit which I did on my workstation, ignored my config/master.key file. Now that I'm hundreds of miles away from my workstation, is there any way to generate a new master.key file using...
Petropavlovsk asked 30/1, 2020 at 19:45
1
I'm using Rails 6.1 with @hotwired/stimulus and importmap.
I'm getting this error in dev env.
ActionController::RoutingError (No route matches [GET] "/assets/stimulus-loading.js")
import...
Tauto asked 15/8, 2022 at 0:25
2
Has anyone experienced this? We upgraded a project from Rails 5.2 to Rails 6.0.0 and after this, the memory consumption skyrocketed... In the release candidate environment, it works fine, but in pr...
Bulimia asked 13/9, 2019 at 17:46
1
Getting this error in rails 6, in rails 5 it was a easy fix after updating the application to rails 6, including webpack this error is appear every where I try to close the model inside the js.erb ...
Twombly asked 13/6, 2020 at 11:59
5
Solved
is there a way to specify in ActiveAdmin's index page of a model what actions are allowed, things like:
index do
actions :edit
end
index do
actions only: :edit
end
do not work. What's the cor...
Defeatism asked 8/9, 2014 at 15:20
3
Solved
Why am i getting 'uninitialized constant Mail::TestMailer' error with "Rails 6.1.5 & Ruby 3.1.0" while working without problems "Rails 6.1.5 & Ruby 3.0.1" ?
Houri asked 13/4, 2022 at 4:11
4
Solved
I have a simple has_one relationship
class User < ApplicationRecord
has_one :detail
has_many :courses
end
class Detail < ApplicationRecord
belongs_to :user
end
I need to check to see if ...
Either asked 6/9, 2020 at 15:43
4
Solved
I have a Rails initializer (features.rb) that must access a model (Report).
Report.all.each do |report|
default_to_enabled(report&.feature_name)
end
This all worked perfectly with Rails 6.1 u...
Siddons asked 19/8, 2022 at 21:47
2
Solved
I am using Rails 6.0.3.2, ruby 2.7.1, yarn 1.22.0.
I am trying to do normal UJS stuff, and this is the error I am getting:
VM125:1 Uncaught ReferenceError: $ is not defined
at <anonymous>:1:...
Barram asked 17/7, 2020 at 2:44
4
Solved
I have tried changing the versions of bootstrap, jquery, and popper but no luck. I don't think I am using more than one version of jquery. Not sure where it went wrong. It would be great if someone...
Ferule asked 1/3, 2020 at 0:25
1
consider this code:
# in Rails 6.1
def preload(resource, relations)
ActiveRecord::Associations::Preloader.new.preload(resource, relations)
end
So:
I want to change that for compatibility with Rai...
Sunshine asked 14/11, 2022 at 11:4
3
Solved
I migrate an application from rails 5.2 to rails 6. There is only have one thing left to do but I don't know how.
I have this depreciation warning:
DEPRECATION WARNING: ActionView::Base instances ...
Eastnortheast asked 16/1, 2020 at 16:10
1 Next >
© 2022 - 2024 — McMap. All rights reserved.