Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
20 views

Can't activate jar-dependencies-0.3.10, already activated jar-dependencies-0.4.1

I'm getting this error. can't activate jar-dependencies-0.3.10, already activated jar-dependencies-0.4.1 Please help me My project has gem 'jar-dependencies', '0.4.1' but in my system it was ...
ankit susne's user avatar
0 votes
0 answers
29 views

How to install bzip2-ruby in mac with ARM?

I am setting up a ruby project and using followings: ruby:2.7.5 There's an error while installing the bzip2-ruby gem mentioned below: current directory: /Users/ssingh/.rvm/gems/ruby-2.7.5/gems/bzip2-...
Sandeep Singh's user avatar
0 votes
2 answers
65 views

Is it possible to add custom data in meta in papertrail only in the 'create' event

has_paper_trail meta:{ object: 'custom_data' } this is my code need to have a condition where we add meta only in case of create i tried this has_paper_trail meta: { object: ->{ ...
Harish Kumar's user avatar
0 votes
0 answers
99 views

Ruby on Rails giving error on gem install

Keep getting an error when installing rails on my PC. I know that I have the ruby and sqlite installed but I keep getting stuck on the min2. I ahve installed this on my mac and seemed ok. I also see ...
William Pescherine's user avatar
1 vote
2 answers
95 views

is there a way to write this clean?

So i have a flag to disable and enable a feature. and will based on the variable it has to toggle the flags flag_a, flag_b, are my two feature flags and the variable input string can be none, all,...
tech spam's user avatar
0 votes
0 answers
50 views

HTML to pdf conversion using wickedpdf with page count

I have html that i need to convert it to pdf using wickedpdf gem and within html I have div <div class="inner-section" style="page-break-after: always; padding-top: 40px;"> ...
DevMasterAryan's user avatar
0 votes
1 answer
58 views

ImageKit works fine on local but doesn't work on heroku why?

puts "Uploading image #{@game_id}" kit = IMGKit.new(@game_url, quality: 50) image_data = kit.to_png obj = S3.object(File.join(@bucket_path, "#{@game_id}.png")) obj.put(body: ...
Jatin Garg's user avatar
-1 votes
2 answers
1k views

How to fix permission error while install bundle for rails project on ubuntu?

Currently on Ubuntu 22.04 desktop version and wanted to run ruby on rails app. Current ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] Rails version: Rails 7.1.2 I installed ...
Amin Alizadeh's user avatar
0 votes
0 answers
41 views

Active Admin filters not displaying on screen but present in the html DOM

Filters in AA usually works smoothly. I did notice that when i override scoped_collection method, the whole filter sidebar tends to disappear from the screen but still loaded in the DOM. I don't have ...
Ouska's user avatar
  • 17
0 votes
1 answer
173 views

Why is the page title not not changing in a turbo-ios app

In a Ruby on Rails app, I am setting the title by the following code in the head tag <title><%= @title %></title> where @title is set in the controller action for each page. Running ...
Obromios's user avatar
  • 16.1k
0 votes
0 answers
75 views

Resolving 'net::ERR_BLOCKED_BY_CLIENT' Error After Upgrading Ruby to 3.2.2 and Rails to 7 with jsbundling Gem

When I upgraded Ruby from 2.7 to 3.2.2 and Rails from 6 to 7, I encountered this error: GET https://js-agent.newrelic.com/nr-rum-1.248.0.min.js net::ERR_BLOCKED_BY_CLIENT I have upgraded Webpack using ...
Mudassar Husnain's user avatar
0 votes
0 answers
223 views

Cant install Mysql2 Gem::Ext::BuildError: ERROR: Failed to build gem native extension

Im using ruby '2.7.5' and rails '6.0.4.7' on WSL2 I'm trying to install the mysql2 gem but I keep getting the following error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. ...
JulioCarvalho's user avatar
0 votes
0 answers
70 views

Filtering Users with Associated Records by Specific Date in Rails

I'm facing a challenge in a Ruby on Rails application where I need to filter users along with their associated records (Program and Learning), based on a specific date range, but only include those ...
IlyaKokorev's user avatar
0 votes
1 answer
38 views

How to handle the params for accepts_nested_attributes_for for has_many association containing a lot of fields on both associated table

I have user model which has has_many association with building model. Initially I was creating the user and the building seperately by using user.create and user.buildings.create because there were ...
nitish's user avatar
  • 1
1 vote
1 answer
124 views

Issue when Rounding Decimal values

I am building a test billing application, built in rub on rails, Jquery and Postgres DB (using decimal columns) This is the below way I am storing values, but I think that is not the way it should ...
Developer's user avatar
  • 621

15 30 50 per page
1
2 3 4 5
1077