All Questions
Tagged with ruby ruby-on-rails-3
16,153
questions
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 ...
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-...
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: ->{ ...
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 ...
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,...
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;">
...
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: ...
-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 ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...