Skip to main content
0 votes
0 answers
17 views

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,688
0 votes
0 answers
50 views

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
-1 votes
1 answer
46 views

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,519
-1 votes
1 answer
63 views

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
  • 6,542
1 vote
1 answer
50 views

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
0 votes
1 answer
72 views

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
  • 8,914
0 votes
1 answer
55 views

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
1 vote
1 answer
69 views

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
  • 121
1 vote
1 answer
107 views

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
1 vote
1 answer
295 views

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
  • 8,540
0 votes
0 answers
53 views

I have button which submit login form. This button generate POST request for my session controller Started POST "/login" for 127.0.0.1 at 2024-04-03 10:49:13 +0300 Processing by ...
Anderson's user avatar
  • 135
0 votes
0 answers
119 views

I'm working on a rails application which is built on rails version 5.0.2 and ruby version 2.5.8. The database used for this is mysql2 version 0.4.10. I also installed the mysql service which is on ...
arslan ahmad's user avatar
0 votes
1 answer
38 views

problem overview I have a client with an App I'm trying to get to Rails 5. Historically we modified the activerecord-jdbc-adapter to access a Progress OpenEdge database, and it's been working since ...
jpa57's user avatar
  • 11
0 votes
0 answers
222 views

Model looks like class Campaign < ActiveRecord::Base before_update :delete_triggers def delete_triggers Trigger.where(campaign_id: id).delete_all end end and in the controller I do ...
Jess The Witch's user avatar
1 vote
1 answer
296 views

I'm developing a Rails application where I'm utilizing the Karafka gem alongside the Rails server. To enhance traceability, I've successfully configured Rails to include a tracking ID for incoming ...
user23353243's user avatar

15 30 50 per page
1
2 3 4 5
627