Skip to main content
0votes
0answers
31views

Rails 5.1 server crashed with weird errors

I set up an old Ruby on Rails app running Ruby 2.6.6 and Rails 5.1.7 on my MacBook Pro M2. I used Rosetta to set up the whole app to run on x86_64. Everything went well with that approach, and I was ...
jkvithanage's user avatar
0votes
0answers
9views

Rails 5 Upgrade- request.fullpath not returning the same value as Rails 4 for Controller Tests

I've recently upgraded my app to Rails 5.2 from Rails 4.2 and I'm seeing some fallout in my in my contrioller tests. In the Rails 4 engine, the value of the request.fullpath in my test case returns as:...
Derek's user avatar
  • 8,640
0votes
0answers
39views

ActiveAdmin is slow with a large number of admin files in Rails 5.1.4

Issue: I am using Rails 5.1.4, Ruby 2.5.1, and ActiveAdmin 1.2.1. My application has around 400 ActiveAdmin resource files, which is causing performance issues. The admin panel loads very slowly, ...
Sanket Panasuriya's user avatar
-1votes
1answer
36views

collection_check_boxes messes with update values

In my Rails 5 project I have 3 models, User, Book, and UserBook. Basically the user_books table is a connecting table connecting users to books. This is my UserBook model class UserBook < ...
mrateb's user avatar
  • 2,509
-1votes
1answer
60views

ROR + ENV Variables vs RedisDB Value

In my current ROR application, I'm using both ENV variables and RedisDB variables as well. For a single change in ENV variables, I have to restart all servers; by this, lots of jobs fail (dirty exit). ...
RahulOnRails's user avatar
1vote
1answer
42views

Handle different error message based on business logic for a single attribute

I have a single attribute in the entities table called reporting_name. I need to display two different error messages based on business logic for different sites. If validation fails for the ...
Code father's user avatar
0votes
0answers
23views

wicked_pdf doesn't work - with puma using phased-restart

I've updated puma to using phased-restart. Phased restart only restart worker, master process not load and have an error like below when old release folder have been removed. ["/var/www/proj/...
Nguyen Ruby's user avatar
0votes
1answer
54views

Retrive actual file name from Rails ActiveStorage S3 file name

I have to migrate assets(images) from Rails ActiveStorage uploaded file to S3 into my another WordPress website. However, it seems the filename is they Blob key similar to as below: ...
Dhanu Gurung's user avatar
0votes
0answers
51views

Rails Upgrade 5.2 -> 6.0: NoMethodError: undefined method `configs_for'

I'm working on upgrading a large rails app from 5.2 -> 6.0. All specs are passing, and the app runs fine. However, running bundle exec rails db:migrate is causing errors. I've been able to run the ...
Sam's user avatar
0votes
0answers
49views

ActionText is blocked , can anyone explain why this is happening?

Recently, I migrated the whole codebase from Rails 5.2 to 7, but the folder structure is still the same as the earlier version. I also implemented ActionText, but the text field is blocked when I try ...
Shiv Shankar Singh's user avatar
0votes
1answer
47views

Rails 5.1.7 cache methods are not working

I'm trying to execute this statement of Rails Cache in console: Rails.cache.fetch('some_other_key', expires_in: 24.hours) { 50 + 50 } It is throwing error like this: ArgumentError (wrong number of ...
Prathibha G Sampath's user avatar
0votes
0answers
47views

ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage) Issue in Rails application

Error: The application encountered the following error: ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage) App 194034 output: /home/deploy/.rvm/gems/...
Ashvini's user avatar
1vote
1answer
62views

Why isn't referred_by being set?

I am trying to follow/reproduce this tutorial here https://gorails.com/episodes/referral-program-from-scratch?autoplay=1 Code is here: https://github.com/gorails-screencasts/referral-program So far my ...
mwhocl's user avatar
1vote
1answer
89views

ChartJS : Fill within a curve dataset above a max, in between max/min, and below min limit with different color

Rails 5, ChartKick 5.0.5 => ChartJS 4.4.1 I have a curved line chart in ChartJS that plots about 0 on the Y axis with separate maximum threshold for positive values and minimum for negative values (...
Brian Becker's user avatar
1vote
1answer
244views

Minitest mock not handling named parameters

I have a line of code: @coverage_class.where(original_id: coverage.id, waiting_for_doc_requests: false) and my unit test is doing the following expect: mock = Minitest::Mock.new mock.expect(:where, :...
Mark Kadlec's user avatar

153050per page
close