Skip to main content

Questions tagged [ruby-on-rails-5]

For issues specific to version 5.x.y of Rails. If your question applies to Ruby on Rails in general, use the tag [ruby-on-rails].

ruby-on-rails-5
0 votes
1 answer
28 views

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
0 votes
0 answers
16 views

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
  • 81
1 vote
1 answer
52 views

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
  • 75
1 vote
1 answer
42 views

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

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
  • 8,288
0 votes
0 answers
43 views

Why I see ajax response instead of view in my RAILS 5 app

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
  • 125
0 votes
0 answers
70 views

LoadError: cannot load such file -- mysql2/mysql2

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
20 views

Rails 5 does not reference a modified ActiveRecord-jdbc-adapter

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
17 views

jasmine-browser-runner with Rails 5 app. serve command giving localhost didn’t send any data

Im using the jazmine-browser-runner test suite in my rails app. There are two ways to run the test, one is via browser and the other is headless. If i run my tests via headless, the test suite runs ...
Derek's user avatar
  • 8,510
0 votes
0 answers
88 views

Rails before_update not triggering on update but save works

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
129 views

How to Implement Tracking IDs for Rails Logs in Karafka Server?

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
0 votes
0 answers
20 views

Unable to initialise redis url's for sidekiq

I have created a class where I send Redis url as parameter and operate on it using Sidekiq inbuiltg methods, when I run code manually using rake command it works properly but when I try to do same ...
tester test's user avatar
0 votes
0 answers
32 views

Tomcat threads getting new application instance?

I am running a web application (Ruby on rails) in a tomcat(9) container. Most of the setup is default. By default it'll have 10 threads ready to accept requests when Catalina is up. But I found this ...
Chihhao Huang's user avatar
0 votes
0 answers
16 views

When I edit without data! but rails console can show it

My rails project database is imported from MSSQL. I am using MariaDB version 11.2.2. When I press the Edit button, the web form has no data, but when I use the Rails Console to issue commands, the ...
Patrick Su's user avatar
0 votes
0 answers
10 views

creating statuses: am getting error SystemStackError (stack level too deep)

am getting this error: SystemStackError (stack level too deep) what is the problem: #this is where a user creates status def create_status(user) duration = 1.day.to_i # Set status duration to 1 day # ...
Asher Namanya's user avatar

15 30 50 per page
1
2 3 4 5
628