Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
66 views

We are migrating our codebase from paperclip to active storage Below is the example of how we use paperclip: has_attached_file :logo, styles: { small: "x36", medium: "x108", ...
Raza Lakhani's user avatar
0 votes
0 answers
16 views

I have recently upgraded rails version from 4 to 6.1.7.8, my ckeditor version is 4.3.0, its deployed on Heroku. now ckeditor toolbar is not showing icons. ckeditor toolbar screenshot I Inspected the ...
Faisal Iqbal's user avatar
1 vote
2 answers
217 views

My ruby version is 3.0.3, bundler version is 2.5.18 Error: ActionView::Template::Error admin/home#index wrong number of arguments (given 4, expected 0..1) Error in line: <%= form_for :business, url:...
chandanjha's user avatar
0 votes
1 answer
104 views

I recently upgaded three Rails applications: UAM, Proposals, and Projects from Rails 5.2 to 6.1.7.7 and from Ruby 2.7.4 to Ruby 3.3.1. The three applications were previously split from the same ...
Ed Allen's user avatar
0 votes
0 answers
143 views

I am upgrading my project from 6.0 to 6.1 and in my project, I have config/initializers/new_framework_defaults_6_0.rb # Be sure to restart your server when you modify this file. # # This file contains ...
Kiran Kumawat's user avatar
0 votes
0 answers
73 views

ruby 2.7.8 rails 6.1.7.7 cancancan 3.5.0 I have upgraded cancancan in favor of upgrading rails version to 6.1.7.7, but now ability file is behaving really weird specially the ones with STI. I have to ...
Kiran Kumawat's user avatar
1 vote
1 answer
58 views

I'm working on a Ruby on Rails server (v6.0.1) and I'm looking for cleaner ActiveRecord joins when the join involves three tables. Here's a barebones reproduction of five models under consideration to ...
Arvind's user avatar
  • 184
0 votes
1 answer
124 views

I'm getting the following error on command line: $ RAILS_ENV=test bundle exec rake db:schema:load rake aborted! ArgumentError: wrong number of arguments (given 3, expected 2) /Users/kamil/Sites/pz/...
Kamilski81's user avatar
  • 15.2k
2 votes
0 answers
84 views

Cliver::Dependency::NotFound:Could not find an executable ["phantomjs"] on your path I'm doing scraping/processing for some of my data using capybara. I have following gem installed gem '...
Nitesh Choudhary's user avatar
0 votes
1 answer
200 views

I'm using rails 6.1 and ruby 3.1.1 on ubuntu 22.04 I've started a new rails app using Postgres: rails new lmt --database=postgresql I also ran gem install pg I have postgres on my local machine and ...
John Cowan's user avatar
  • 1,764
0 votes
1 answer
173 views

I have a rails app and I had to revert a lot of commits. Now, when I try to view the app locally localhost:3000, I get an error I haven't seen before. Processing by MainController#index as HTML ...
John Cowan's user avatar
  • 1,764
0 votes
1 answer
119 views

I'm running rails 6.1.7.6 and ruby 3.1.1 I'm set up a new rails app on heroku. I tried for two days to get webpack working but I couldn't. I followed many threads, but it kept saying I needed to ...
John Cowan's user avatar
  • 1,764
0 votes
0 answers
52 views

I have facing issues of jquery in my rails 6 project. I've attached the picture of my errors enter image description here Ruby version is 2.7.6 and Rails version is 6.1.3. And I'm using asset pipeline ...
Salman Bashir 's user avatar
0 votes
1 answer
112 views

I use connection switching in AA backend. Depending on session i switch to the archive db. The problem is that calling ActiveRecord::Base.connected_to with database key switches the connection forever,...
NeverBe's user avatar
  • 5,048
0 votes
1 answer
65 views

I'm using rails 6.1 and 'ruby 3.1.1` In a form, using form_for, I have a select field that is using :required => true, but it is not working. The page submits without prompting me to complete that ...
John Cowan's user avatar
  • 1,764
0 votes
1 answer
82 views

I'm using rails 6.1.4 and ruby 3.1.1 My app is on Heroku. I have several images in my assets/images directory, but I cannot get some of them to show when I deploy to live. Other images in the app ...
John Cowan's user avatar
  • 1,764
1 vote
2 answers
257 views

I have a little framework for dynamically constructing queries in rails (v6.1.7.3) based upon a json request from the front-end. As the use-cases keep growing, one thing that has been a bit of a pain ...
Ryan Pierce Williams's user avatar
0 votes
1 answer
68 views

rails 6.1.4 ruby 3.1.1 I have a sub-directory in my app: living_muay_thai I had a couple problems with my app because I was using the namespacing like so: LivingMuayThai::Student in the models. With ...
John Cowan's user avatar
  • 1,764
-1 votes
2 answers
461 views

I have recently upgraded a project to ruby 3.2.2 and rails 6.1 I am having issues with ActionView::Base. With the recent upgrade, I need to pass 3 arguments to ActionView::Base.new instead of 2. From ...
marimaf's user avatar
  • 5,420
0 votes
0 answers
36 views

I'm using rails 6.1.4 and ruby 3.1.1 In my app I have a section of it in a sub-directory: living_muay_thai/. I've created a rails task to populate a table with specific data. It works perfectly fine ...
John Cowan's user avatar
  • 1,764
0 votes
1 answer
49 views

rails 6.1 ruby 3.1.1 I have a many to many relationships inside a sub-directory (namespaced) ...living_muay_thai. I have three tables: students, levels, and student_levels. I have records created in ...
John Cowan's user avatar
  • 1,764
0 votes
1 answer
48 views

I did brew update, without any errors all the brew libraries got updated. After then when I start the rails server with any error it got aborted. project_path git:(develop) ✗ bundle exec rails server -...
prasannaboga's user avatar
  • 1,014
4 votes
1 answer
248 views

I'm upgrading to Rails 6.1, and have the following associations in my model class Product < ApplicationRecord has_many :classifications, dependent: :destroy has_many :order_lines, dependent: :...
Faisal's user avatar
  • 19k
0 votes
1 answer
75 views

I'm using rails 6.1.4 and ruby 3.1 I have a sub-directory inside my rails app, call it /foo I've worked with rails some, but I've never done this. I want to create a landing page at .../foo/index.html....
John Cowan's user avatar
  • 1,764
1 vote
1 answer
50 views

I'm using: rails 6.1.4 and ruby 3.1.1p18 It's been a minute since I've played with a many-to-many association in rails and I'm a bit lost on this one. Any help/tips will be greatly appreciated. I'm ...
John Cowan's user avatar
  • 1,764
0 votes
1 answer
316 views

This is the weirdest thing... I did this in my migration class AddImmuneVaccineToImmuneRecord < ActiveRecord::Migration[6.1] def change add_reference :immunisation_records, :immune_vaccine ...
hook38's user avatar
  • 3,907
-1 votes
1 answer
235 views

Ruby: 3.1.2, Rails 6.1 Trying to add gem importmap-rails to an existing Rails 6.1 app. The gem bundles, but neither the rake importmap:install task nor the gem helper method <%= ...
nimmolo's user avatar
  • 627
-2 votes
2 answers
1k views

On a brand new rails 6.1.7.4 app, I'm getting the following error when making a request to any page besides the default "Rails::WelcomeController#index" screen: Webpacker::Manifest::...
Neil's user avatar
  • 4,740
0 votes
1 answer
467 views

When I start rails server locally (rails 6.1.3.2, ruby 3.0.0) with this configuration in develompent.rb config.active_record.cache_versioning = false config.cache_store = :redis_store, "redis:...
Vinoth Kumar's user avatar
2 votes
0 answers
45 views

I am using Administrate gem version 0.16.0 and my Rails version is 6.1.3.1 In the listing of my records, I have a trash icon on click of which record should be deleted. But somehow it sends a GET ...
Pratha's user avatar
  • 61
0 votes
0 answers
248 views

I'm addressing some vulnerabilities that were identified by one of our automated systems. Basically, it just recommends dependency updates to mitigate CVE vulns. As a result, I had to upgrade Rails ...
brentmc79's user avatar
  • 2,541
0 votes
2 answers
355 views

Let's consider a class with definition as shared below: # a_type :string class Foo < ActiveRecord::Base enum a_type: { fir: 'first', sec: 'second' } validates :a_type, presence: true, ...
piyush's user avatar
  • 1
0 votes
1 answer
462 views

I am upgrade ruby to ver 3.1.3, rails ver 6.1 And I got error NameError: uninitialized constant My folder tree: - app |- models |- area.rb |- area |- search.rb |- constants.rb In ...
Khôi Nguyễn Đình's user avatar
1 vote
0 answers
253 views

I have a ruby on rails project which is using a mysql database. I try to add one fulltext index upon one of my model for 2 attributes (name & body). I did the following migration: def change ...
Fabien's user avatar
  • 465
5 votes
2 answers
813 views

We have recently migrated our codebase from Ruby 2.7.x and Rails 5.2.x to Ruby 3.2.2 and Rails 6.1.7.3. Previously, our mailers were defined like this: class ApplicationMailer < ActionMailer::Base ....
Irina's user avatar
  • 75
0 votes
1 answer
359 views

After having upgraded to Ruby 3.0.6 and, subsequently, to Rails 6.1.7.3, we are having issues with all the URL helpers used in views. They all fail with the error: ActionView::Template::Error: ...
Ruby Racer's user avatar
  • 5,770
0 votes
1 answer
644 views

Hey guys, i need help, am new to testing and am testing my mailer but i do not understand y am getting this error when i run my tests. 'expected ActionMailer::Base.deliveries.size to have changed by 1,...
mutebi godfrey's user avatar
1 vote
2 answers
2k views

I'm upgrading my open-source Ruby on Rails app from Rails 6.0.x to Rails 6.1.x The upgrade went fine, except now I get an error from an async ActiveJob that fetches RSS feeds. When my app is deployed ...
mattwise's user avatar
  • 1,506
2 votes
1 answer
159 views

JSON.parse(response, object_class: OpenStruct) rescue response My rails application has above line of code which is causing an weird issue. Here response is coming from an external API call and looks ...
Dev's user avatar
  • 567
1 vote
1 answer
327 views

I am using Rails 6.1.7 with turbolinks and CSP nonce based. Here is my CSP config : policy.default_src :self, :https policy.font_src :self, :https, :data policy.img_src :self, :...
Maryline Rs's user avatar
0 votes
0 answers
139 views

In a Rails 6 application, the wicked_pdf was working fine in the local server. It is downloadable, but in the production server it raised issue. Here is the code controller.rb def show respond_to ...
Nur_Alam39's user avatar
1 vote
1 answer
534 views

I would like to become more closely aligned to the latest Sidekiq version but I'm not sure what I need to upgrade or update in my code/libraries. Any ideas?
Kamilski81's user avatar
  • 15.2k
0 votes
2 answers
263 views

Migrated from Rails 6.0 to 6.1 and stumbled upon this deprecation when is called 'type_documents relation', : ActionView::Template::Error (DEPRECATION WARNING: Merging ("documents"."...
Goaul's user avatar
  • 1,580
0 votes
1 answer
253 views

In my Rails app, I have a form for voting on various "post" titles. The form has one select element, and submits remotely to a VotesController using rails-ujs. I want to handle response the ...
nimmolo's user avatar
  • 627
1 vote
1 answer
215 views

We recently implemented a read-replica in our Rails 6 application. We are only using it for specific transactions by wrapping them in a block: ActiveRecord::Base.connected_to(role: :reading) do # ...
hummmingbear's user avatar
  • 2,424
0 votes
1 answer
98 views

I'm a beginner to ROR. Currently using Ruby 6.1 . I'm trying to add new feature announce box to inform users about recent changes of the app. This is a web app. This should popup in when accessing the ...
Devin Y's user avatar
  • 137
15 votes
2 answers
8k views

I have Ruby 3.0.4 Rails 6.1.7 pg 1.4.5 postgresql 14.6 Here is my database.yml file development: adapter: postgresql encoding: utf8 database: olio_development username: postgres password: password ...
Suganya Selvarajan's user avatar
1 vote
0 answers
319 views

Did Rails Dev, migration rails app using ar-octopus to rails version 6/7. As I see there are no updates regarding the rails v6 in ar-actopus gem, did any tried to upgrade on own. Thanks in Advance.
Modi Ranga Nayakulu's user avatar
0 votes
0 answers
608 views

The new multi-database feature is great, however it is unclear to me how you can still execute raw mysql calling ActiveRecord::Base.connection.execute and have it select a specific database in the ...
perfect_crimes's user avatar
2 votes
1 answer
1k views

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 eager-loaded, but I believe they are declared ...
nimmolo's user avatar
  • 627

1
2 3 4 5