17,036 questions
0
votes
1
answer
682
views
gem install rails "ERROR: While executing gem ... (Gem::FilePermissionError)..."
Getting my local environment setup for Ruby on Rails.
So I have rails installed in my .rbenv file, and when I type which rails, that's confirmed.
where rails shows the /Users/<username>/.rbenv/...
2
votes
0
answers
352
views
Could not find gem in Nexus
I'm currently trying to bundle install a gem from Nexus. I can access earlier versions but get the message 'Could not find gem '' in rubygems repository . Seem to have tried everything and looked on ...
0
votes
1
answer
200
views
Cannot install gem debug
I am trying to find a way to debug ruby program, I have the VSCode extension rbdg and when I tried to run the command in window terminal, it kept giving me error
sudo gem install debug
Building native ...
1
vote
0
answers
64
views
I am trying to configure and setup and old rails project (2.3.8) in ubuntu 20.04
I am trying to setup rails 2.3.8 project in ubuntu 20.04
Ruby version is 1.8.7
I have installed ruby and and rails of these version successfully.
But when i try to run server using command script/...
0
votes
0
answers
100
views
ActionController::RoutingError (No route matches [GET] "/meta.json"):
It is an application with more than one engine. I get this error but I can't find where it is coming from. There is no problem with the general functioning of the application. I've tried to find the ...
0
votes
0
answers
88
views
Possible causes of ActiveRecord::StatementInvalid error with message "Could not find table 'active_records'" in a Rails project on Ubuntu 22.04.3 LTS
I used devise to create the users table, all the names are correct, I only use one model and there are no typos anywhere. When I start the server I get to the login page. If I try to login or register,...
0
votes
1
answer
159
views
Installing iruby behind a proxy failing at installing required msys2 packages
I try to install iruby on my office computer, but it fails at "Installing required msys2 packages: mingw-w64-ucrt-x86_64-zeromq" because it couldn't load the needed files with follwing error ...
5
votes
1
answer
2k
views
Gemfile requires a newer version of a dependency
So when I'm creating a new Rails Project
rails new test
I have this issue.
You have already activated error_highlight 0.3.0, but your Gemfile requires error_highlight 0.6.0. Since error_highlight is a ...
2
votes
1
answer
3k
views
How to install arm64-linux based ruby gems on a M1 arm64-darwin based Mac?
I've been having trouble deploying a project to AWS lambda, the code works on my laptop just fine, but deploying on Lambda yields issues related to the google-protobuf gem. It is the only gem in my ...
1
vote
1
answer
515
views
I'm use rbenv to install ruby but I 'm getting this error when using "GEM" -> ERROR: While executing gem ... (Errno::EACCES) Permission denied
I install ruby follow this steps https://github.com/rbenv/rbenv on my MacBook M1 Sonoma 14.2.1.
All went perfect until I need to use "gem install bundler".
terminal:
gem install bundler
...
4
votes
2
answers
1k
views
LoadError for racc/parser.rb - prevents local Jekyll website build
I am revisiting a static website I built a few years ago with Jekyll, and having trouble compiling the source locally to then send to my github pages website. I am not technically adept so please ...
0
votes
1
answer
201
views
Unable to update sidekiq-batch runtime dependency to recommended version
I am currently working on a Rails application that uses the sidekiq-batch gem. After identifying a vulnerability in the runtime dependency of sidekiq-batch related to the sidekiq, I am attempting to ...
0
votes
1
answer
1k
views
Cannot start Rails Console - cannot load such file "ext/save-history.rb"
I recently upgraded my Rails 7.0.4 Application from Ruby 2.7.5 to 3.2.2
Everything is working correctly - I can run the server, tests, etc - but I cannot start a Rails console. When I do start a ...
1
vote
1
answer
75
views
RubyOnRails start failed in test environment
RAILS_ENV=development rails c
is work,
but
RAILS_ENV=test rails c
got this error
# RAILS_ENV=test rails c
/home/seluser/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails.rb:47:...
0
votes
1
answer
384
views
Ruby errors during installation with devkit and native gem building
I have errors when installing ruby on windows and afterwards some native gem builds fail.
I installed Ruby+Devkit 3.2.2-1 (x64) from https://rubyinstaller.org/downloads/
The expected behavior is that ...
1
vote
0
answers
84
views
In Ruby, how to send multiple files in single request using RESTClient
I've been have a issue where I tried to use the RestClient lib to send two or more files to Kotlin Service endpoint where this controller needs to receive a files attributes that is a List<...
1
vote
0
answers
103
views
How to point ruby app to local gem on machine during development of gem, without rebuilding and reinstalling the gem on every change
I'm building a (non-rails) ruby gem, and during development I created a small ruby project that uses the gem so I can test things out as I build it.
In my ruby app, the Gemfile points to the gem like ...
0
votes
1
answer
75
views
gem found by ```gem info``` but not with ```bundle info```
I'm new to ruby and rails, so I have a simple question. On my machine the gem "matrix" will be found by gem info:
root@tRdmInt-deb12:/usr/share/redmine# gem info matrix
*** LOCAL GEMS ***
...
1
vote
1
answer
37
views
Can my rails gem interact with models defined in the application that the gem is used in?
I have 2 rails applications and there is a service that is used by both. I have refactored the service to be a gem that can be leveraged by both rails applications.
As an example, the service defined ...
0
votes
0
answers
116
views
RubyOnRails project deployment halted due to "rake aborted! NoMethodError: undefined method `new' for BigDecimal:Class" error
While trying to deploy an old RubyOnRails project, I receive this error in console:
Nov 27 06:54:15 PM rake aborted!
Nov 27 06:54:15 PM NoMethodError: undefined method `new' for BigDecimal:Class
...
0
votes
0
answers
315
views
Cannot connect to debugger in RubyMine
I'm getting this error when trying to run the debugger on RubyMine.
Could not connect to Debugger
Cannot connect to the debugged process at port 51452 in 10s: Local process: RubyDebugTarget[baseDir: ...
1
vote
4
answers
2k
views
not able to install rails on windows
hey I'm trying to install rails for a project I'm working on
gem install rails
but i get this error
error: failed to init transaction (unable to lock database)
error: could not lock database: ...
0
votes
1
answer
91
views
homebrew ruby: gem command not found
Installing gem using rbenv in a dockerfile: https://github.com/rbenv/rbenv
These are the steps:
RUN brew install rbenv ruby-build
RUN echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
...
3
votes
1
answer
1k
views
Error installing unf_ext (0.0.9) with native extensions in Gemfile
I am encountering an issue while running bundle install for a Ruby project with the following Gemfile:
ruby '2.3.1'
source 'http://www.rubygems.org'
gem 'aws-flow', '~> 2.4.0'
gem 'aws-sdk-core', ...
0
votes
1
answer
275
views
npx react-native@latest init error installing ruby gems
While trying to create a react native CLI app on M1 Mac an error occured while installing Ruby Gems:
✖ Installing Ruby Gems
error There was an error while trying to write to
/Users/maciejwiacek/....