Questions tagged [rubygems]

RubyGems is a package management tool for the Ruby programming language. It allows users to download and update Ruby libraries, and provides automatic dependency resolution.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Ruby errors during installation 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/ When installing the msys base ...
Gerhard's user avatar
  • 6,913
0 votes
0 answers
27 views

How to make a sub role functionality in ruby on rails (active admin)

I am working on creating a 'sub_admin' role for admin using CancanCan, and Active Admin. The goal is to enable sub_admin to manage specific aspects of it's parent account information. However, I want ...
tanmaydot's user avatar
0 votes
1 answer
12 views

CORS is not working as per gem 'rack-cors' in ruby '2.7.6', rails '5.1.7'

require 'rack/cors' Rails.application.config.middleware.insert_before 0, Rack::Cors do allow do origins CORS_ORIGINS[Rails.env] resource '*', :headers => :any, :methods => [:get, :...
Atul's user avatar
  • 1
0 votes
0 answers
17 views

rails-settings-cached gem with rake task in production

I have been using rails-settings-cached for sometime (I believed successfully). My setup and usage is broadly as described in the readme for the gem (with an admin interface as described). I have an ...
Dan SimBed's user avatar
0 votes
0 answers
26 views

EC2 Micro T2 too weak to install ruby gems in Docker?

To summarise I am trying to use my Dockerfile to build a docker image, however whenever it gets to the last step of the build, it will hang on installing a dependency that has native builds. Things I ...
Josh's user avatar
  • 1
1 vote
0 answers
27 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<...
Flavio Guilherme's user avatar
0 votes
1 answer
25 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
0 answers
40 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 ...
robins35's user avatar
  • 663
1 vote
1 answer
69 views

Sprocket Rails V4 link to manifest files of external gems

Using Ruby 3, Rails 7+ and Sprockets V4 I'm having trouble compiling the css assets from gems. I've created a gem (as a Rails Engine) and it contains some .css assets in app/assets/stylesheets/my_gem (...
Pavarine's user avatar
  • 704
0 votes
1 answer
31 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 *** ...
Steffen's user avatar
  • 2,552
0 votes
2 answers
49 views

ruby on rails - Unable to load application: LoadError: cannot load such file -- database_cleaner/active_record

I am trying to deploy ruby on rails project on render platform. I inherited this project in my school and added new features there. I get the following error when I run my Rails application in ...
Anastasia's user avatar
1 vote
1 answer
23 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 ...
MicFin's user avatar
  • 2,441
0 votes
1 answer
33 views

Ruby on Rails rails_admin add custom model section without needing to create a table

I need to add into my rail admin panel in the model list to interact with the database a custom section without a table related to it. Like a "fake" model we can say. Already tried to create ...
Gonzalo's user avatar
  • 17
0 votes
1 answer
83 views

Deploying Ruby application on Elastic Beanstalk taking too long

I'm currently facing an issue with deploying my Ruby application on Elastic Beanstalk. I'm using the platform "Puma with Ruby 2.3 running on 64-bit Amazon Linux/2.3.3." The deployment has ...
Abhijith Ea's user avatar
0 votes
0 answers
35 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 ...
ds998's user avatar
  • 65
0 votes
0 answers
37 views

Elastic Beanstalk Deployment Not Reflecting Gemfile Update Without Manual Instance Termination

I'm facing an issue with Elastic Beanstalk where an initial deployment failed due to a Ruby gem issue. I resolved the issue by updating the Gemfile, but subsequent attempts to deploy the new version ...
Abhijith Ea's user avatar
0 votes
1 answer
56 views

Impossible to bundle install the gem "sassc-rails"

it's my first question, pardon me if it's not well explained. I want to add the gem "sassc-rails" in my gem file but when I bundle it, here the errors in my terminal Fetching gem metadata ...
Marco-008's user avatar
0 votes
0 answers
53 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: ...
Elegant-Watch-325's user avatar
0 votes
2 answers
78 views

Getting in `require': cannot load such file -- ffi (LoadError) after installing gem 'font-awesome-sass', '~> 4.7.0'

Im using windows. I wanted to include font awesome icons to my project and so I added gem 'font-awesome-sass', '~> 4.6', '>= 4.6.2' to my gem file did a bundle install and got this: Fetching ...
Wellington Mitole's user avatar
0 votes
0 answers
106 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: ...
Johnny Louifils's user avatar
0 votes
1 answer
59 views

I got Error when installing coocapods from terminal

Installing cocoapods from terminal "ERROR: Error installing cocoapods: There are no versions of cocoapods-downloader (>= 2.0) compatible with your Ruby & RubyGems. Maybe try installing an ...
HBK's user avatar
  • 7
0 votes
1 answer
39 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 ...
RNK's user avatar
  • 5,652
0 votes
0 answers
46 views

Error while creating a brand new react native app (MacBook Pro M1, MacOS 14.1)

I'm working with a Mac M1 with the version 14.1 of macOS Sonoma. I'm trying to create a new react native application but I'm facing this error: ✔ Downloading template ✔ Copying template ✔ Processing ...
DadaArno's user avatar
  • 192
0 votes
2 answers
57 views

Ruby Rspec, Finding how many times a worker being called recursively

I need to test a worker on Rspec, to Find how many times the same worker being called again and again in recursive manner. Eg: Class Myworker def perform(id) model = Mymodel.find(id) ...
jansha's user avatar
  • 162
2 votes
1 answer
501 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', ...
Abhijith Ea's user avatar
0 votes
1 answer
39 views

Overriding object_changes on paper trails to store name corresponding to change in IDs

For associations, I am assigning IDs from different model to my model and therefore IDs are being changed. Papertrail tracks those changes, and this is the state of my object_changes: { "...
FiFi's user avatar
  • 79
0 votes
1 answer
52 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/....
maciej_wiacek's user avatar
0 votes
1 answer
105 views

ruby gems dependency not being installed in lambda function

I'm trying to deploy an Ruby app to an AWS Lambda function but some gems are not being bundled correctly. This is the error message in the log: INIT_START Runtime Version: ruby:3.2.v9 Runtime Version ...
Alvaro's user avatar
  • 41
0 votes
0 answers
13 views

Why was StandardRB gem not able to format files in a directory, when multiple apps loaded into a VSCode workspace?

Forgive the poor wording of the top level question, or I'm open to revisions. With 2 projects open in an Untitled VSCode workspace, I lost the ability to format files in project_a/. project_a/ is a ...
J.R. Bob Dobbs's user avatar
0 votes
0 answers
90 views

Ruby on Rails - macOS Sonoma - Apple Silicon M1 Pro `pwd': Operation not permitted - getcwd (Errno::EPERM)

Unable to "Get Started with Rails" on macOS Sonoma - Apple Silicon M1 Pro. Creating a New Rails Project Before installing Rails, checked to make sure that the system has the proper ...
StackHeap's user avatar
0 votes
0 answers
13 views

Is there any valid reason why gem omniauth-rails_csrf_protection in only Rails 4.2+ compatible?

I was wondering is there any valid reason why omniauth-rails_csrf_protection is not compatible with the versions of Rails below 4.2? Are there some functionalities in Rails 4.2+ that are crucial for ...
Milos's user avatar
  • 356
0 votes
0 answers
20 views

New React Native Project gives error on running the bundle install

I have created a new React Native project based on Typescript, and while running the bundle install command, I am getting the following error An error occurred while installing ffi (1.16.3), and ...
Anandhu's user avatar
  • 312
0 votes
0 answers
118 views

undefined method `deprecator' for ActiveSupport:Module

I have a Ruby gem that uses this line all the time, for example to work with the blank? and present? methods: require "active_support/core_ext/string" Recently there was an update for Rails....
Colibri's user avatar
  • 1,033
0 votes
0 answers
42 views

Google site verification returns error "The necessary verification token could not be found on your site."

Why I can't have successful site verification even the page contains required <meta> value <meta name="google-site-verification" content="example-here-wOdSNt90kex2PFg1TEtv_8&...
aldrien.h's user avatar
  • 3,527
0 votes
0 answers
35 views

Dependabot hanging on a certain gem, can I totally ignore it?

So I am running Dependabot on our ruby on rails repository, and there is two specific gems that apparently just don't work with Dependabot (ffi-yajl is one, here is a issue raised by dependabot saying ...
bock.steve's user avatar
0 votes
0 answers
13 views

use gem "rubytube" and path of video

i try this code but when i run it i dont where is the video require 'rubytube' # Initialize with video URL video = RubyTube.new('https://www.youtube.com/watch?v=dQw4w9WgXcQ') # Specify the directory ...
Nazi's user avatar
  • 9
1 vote
1 answer
34 views

How can I force kramdown (or Nanoc) to generate <br> instead of <br /> for line breaks?

I’m using kramdown with static site generator Nanoc to generate HTML from Markdown. By default, kramdown is generating Markdown double-spaces as XHTML-friendly <br /> instead of HTML5's <br&...
Dave Everitt's user avatar
  • 17.4k
0 votes
2 answers
38 views

Trying to install jeykll on my mac I ran into this error?

So, Im trying to install Jeykll on my mac as I said upon running gem I got this error: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/...
Andrew's user avatar
  • 1
0 votes
0 answers
48 views

ActiveRecord::InverseOfAssociationNotFoundError in rails 7

Hii in my rails application when I going to open the profile page the following error comes My ruby version is "3.2.2" and my rails version is "7.0.8" ActiveRecord::...
nitish's user avatar
  • 1
0 votes
0 answers
26 views

"bundle info puma" failed due to other uninstalled dependency

I have a very basic rails application. After running bundle config set --local deployment true and bundle _2.4.10_ install, I want to run bundle info puma to check if puma is installed successfully ...
Baiyang Li's user avatar
0 votes
0 answers
27 views

Setting up `gemstash` to work with `rake release` in Ruby gem

I am trying to set up gemstash such that (1) it operates as a cache for rubygems.org and (2) it serves private gems that I want to test without making them public (yet). For gems that I want to ...
Daniel Doherty's user avatar
0 votes
0 answers
93 views

Chartkick is not loading on Ruby on Rails 7 installed with Webpack

I have installed Chartkick according to the instructions in their official page. However, after trying to render a pie chart it simply says "Loading" on the div the graph was supposed to ...
el_tinha's user avatar
0 votes
0 answers
28 views

Getting permission denied error when downloading a html page as html

This is my shortlisted action and shortlisted.html.erb , when clicked on download the list of shortlisted candidates should get downloaded. def shortlisted ids= AppliedJob.shortlisted.pluck(:user_id) ...
Sid's user avatar
  • 1
0 votes
0 answers
69 views

Mysql Errors when trying to start Rails project with mysql database

I am trying to create a new Ruby Rails project on a Windows system I have installed Rails v 7.1.1 I then run rails new myRailsProject -d mysql However, an error occurs: An error occurred while ...
auto's user avatar
  • 1,084
18 votes
3 answers
20k views

Error installing cocoapods: drb requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210

ı want to develop project with react native Cli. ı read the react native documentation. ı should set cocoapods when ı write sudo gem install cocoapods. the terminal said me Error installing cocoapods: ...
YAKUP KOK's user avatar
  • 199
0 votes
0 answers
83 views

jsonapi-serializer - Return slug instead of id for relationship

I'm using jsonapi-serializer to serialize my objects. I want to return slug for the original model and also all the association(relations). product_serializer.rb class ProductSerializer < V1::...
Indyarocks's user avatar
-1 votes
2 answers
138 views

I keep getting YAML syntax error occurred while parsing /rails/config/database.yml

I really need some help. I am new to Ruby on Rails. I am building a rails 7.1.0 app using postresql with docker. I am working on a Pop!_OS 22.04 LTS computer with ruby 3.2.2 (2023-03-30 revision ...
Jephry_x's user avatar
0 votes
1 answer
57 views

Unable to to install cocoapods - Error installing cocoapods: ERROR: Failed to build gem native extension

I am tring to install cocoapods is using this command: sudo gem install cocoapods I have tried updating ruby, uninstalling and re-installing ruby just so I can install cocoapods This is my error below:...
Yoms's user avatar
  • 66
1 vote
1 answer
410 views

gem update --system ERROR: While executing gem ... (URI::BadURIError)

zhijiejiaoyu01@MacBook-Air-2 ~ % gem update --system ERROR: While executing gem ... (URI::BadURIError) both URI are relative /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/...
adolph's user avatar
  • 11
0 votes
2 answers
64 views

how to go to logout path in rails?

I am using rails 7 and When I click on logout it show an error that logout path is not found. Here is my code of routes.rb, session controller and header section for logout: Rails.application.routes....
Afaq Khan's user avatar

1
2 3 4 5
339