Most voted "gem" questions
Gem refers to a part of the code package managed with Rubygems. Gem is also the name of the command line tool used to manage Rubygems.
Learn more…32 questions
Sort by count of
-
8
votes4
answers265
viewsHow to set --no-ri --no-rdoc as default when using Gem install?
Always when giving Gem install I have to provide the parameters --no-ri and --no-rdoc, I would like this to be standard for this command! How can I do that?
-
3
votes1
answer173
viewsStatistics in Ruby on Rails
I have the following problem, I need my system to generate some statistical data from an array, for example: vetor = [1, 5, 2, 1, 6, 30, 2, 7, 2, 80] I need to extract some data from it, like:…
-
2
votes1
answer58
viewsHow to add more lines to a Ruby class?
I began to venture into the world of rubygems. I’m developing a Gem to generate my twitter bootstrap-style app’s Assets, as I intend to reuse my front-end code. All I need to do is put the Assets in…
-
2
votes1
answer120
viewsRails 4 Error each_with_index when using activerecord-import
I’m trying to import an app into Rails 4 using Gem activerecord-import. When I try to execute the command: Detail.import( columns, values, :validate => false ,:timestamps => false ) I get a…
-
2
votes4
answers1978
viewsMask in Rails fields
Guys I’m getting beat up for something theoretically simple, I’m wanting to put a date mask on my application.js: //= require maskedinput jQuery(function($){ $("#datadoacao").mask("99/99/9999");…
-
2
votes1
answer2041
viewsHEROKU connect to mysql database
I’m doing reverse engineering on a system, and what I want is to use the same database as the old system. But I am not able to connect the system database in production with this base. And because…
-
1
votes1
answer106
viewsGem will_paginate does not load when deploying to Heroku
Initializing repository, done. Counting objects: 3605, done. Delta compression using up to 4 threads. Compressing objects: 100% (1035/1035), done. Writing objects: 100% (3605/3605),…
-
1
votes1
answer171
views"Sqlite3::Sqlexception: no such table: main.Category" running rake db:migrate with Gem Acestry
I’m having a hard time using Gem Acestry in so far as it says: Add index to Migration: add_index [table], :ancestry (UP) / remove_index [table], :ancestry I’m creating a method called Category and…
-
1
votes1
answer401
viewsHumanize in accented characters
I have the following problem, I have some error messages in my system, but when there are accents in the messages, humanize does not apply to these characters, I tried to use the gem…
-
1
votes1
answer234
views -
1
votes2
answers992
viewsHow to update Gem in windows?
My problem is I can’t update gem I lowered the rubyInstaller tried running command to update: gem update rails --no-document But unfortunately no update gives error: gem update rails --no-document…
-
1
votes1
answer365
viewsrequire command does not work on Gem for ruby
I installed the Ruby, the Railsinstaller and the Rubydevkit no on partition C (e.g. c: Ruby23-x64). Execution in cmd ruby -v appears the version of ruby installed smoothly. Executed Gem install…
-
1
votes0
answers33
viewsWrite PC screen to Ruby
I need to create a Cucumber report with video and for that I need to know if there is a Ruby Gem that saves the PC screen.
-
1
votes1
answer70
viewsIs there a need to declare the same dependency in Gemfile and gemspec?
I have several Engines in my API, all have as a dependency Artemis::Core. I want to understand the difference between declaring Gemfile, for example Gem artemis-core: source 'https://rubygems.org'…
-
1
votes1
answer61
viewsproblem in file format validation with Gem Paperclip 5.1.0, Rails 5
Model has_attached_file :foto validates_attachment_content_type :foto, content_type: /\Aimage\/.*\z/ Log error Command :: file -b --mime…
-
1
votes2
answers3115
viewsError installing Gem pg
I’m making that mistake when I turn the bundle install "An error occurred while Installing pg (0.21.0), and Bundler cannot continue. Make sure that `Gem install pg -v '0.21.0'` succeeds before…
-
1
votes0
answers86
viewsProblem with the command Rails db:create Undefined Symbol: rb_enc_alias
Whenever I create a project (from scratch) then I give the command db:create Rails to create the database show me this error: LoadError: /var/lib/gems/2.3.0/gems/pg-1.1.0/lib/pg_ext.so: undefined…
-
0
votes1
answer135
viewsWhat is the best method in Rails to create a self-reported category?
I would like a hint to create a self-referenced category where it would be possible to add daughter categories of her own and so susceptibly for the purpose of building a tree using the same object.…
-
0
votes1
answer134
viewsHow to install Sass Gem on Windows
I wanted to install Sass’s Gem so I could compile it on Windows. I installed the normal Ruby Installer and soon after I went to the Sass documentation of how to run it in Windows using console mode,…
-
0
votes2
answers809
viewsText field mask without using jquery
Does anyone know a ROR guide who can do this job? Add masks to fields like phone, email, date, etc and allow me to also create my own masks. Thank you.
-
0
votes1
answer191
viewsIs Gems Ruby or On Rails?
I’m starting in Ruby and On Rails. I got a little confused about "Gem", it’s part of Ruby or On Rails? Example of command below. gem install nome gema
-
0
votes1
answer1605
viewsWARNING: You must use ANSICON 1.31 or Higher
I am trying to run my automated tests but this error happens to be related to ANSICON. I tried to perform the installation on my Windows 10, but it does not allow.…
-
0
votes1
answer86
viewsbcrypt error in Rails 5.1
In a new project, after installing the Gemfile gems, when I try to start the server with rails s the following error is displayed in the console : LoadError: cannot load such file -- 2.3/bcrypt_ext…
-
0
votes1
answer80
viewsGem Wicked_pdf - when breaking page repeats the first row of table
When you have a table and the records do not fit on a single page, on the new page wicked_pdf repeats the first line disturbing the reading of the second page. How do I not display this first line?…
-
0
votes1
answer94
viewsError creating database in postgres using Ruby On Rails in windows 7
Running the command on the terminal to create the Rails project database in Postgres: $ rails db:create There’s this bug that I haven’t been able to fix in a while: rails aborted! LoadError: cannot…
-
0
votes0
answers196
viewsUpdate fields using jquery and Gem Cocoon
I’m using the Rails Cocoon for child form creation. When creating the child form, a field called Barcode is read and, via ajax, I receive the product information and fill in the form fields. This is…
-
0
votes1
answer184
viewsHow to put a . Gem in Gemfile
Good afternoon, I’m having a problem installing a . Gem through Gemfile. In Gemfile is: gem 'hanaclient', path: '/usr/sap/hdbclient/ruby/hanaclient' Within the /usr/sap/hdbclient/ruby/hanaclient…
-
0
votes0
answers65
viewsError installing package or updating Ruby Gem
Hello! When I apply any control gem install qualqueroutragem or gem update --system this type of error occurs: "ERROR: While executing Gem ... (Argue) Wrong number of Arguments (Given 1, expected 0)…
-
0
votes1
answer151
viewsShow Logged-in User on rails_admin Dashboard
Good afternoon to everyone, I am developing a project in Rails 5 using Devise, cancancan and rails_admin, what happens is the following, I created some types of users, among them I cite users…
-
0
votes0
answers171
viewsHow can I make an access control, visually, in ruby on Rails?
I’ve already done the part gráfica(FRONT), however I am having problems in the part of the code. The access control works as follows: if the new group (or profile) is created, I can decide what…
-
-1
votes1
answer81
viewsError installing Compass on Mac
I am trying to install Compass on my machine and I am facing the following error. I’m using with command with sudo. Building native extensions. This could take a while... ERROR: Error installing…
-
-2
votes2
answers120
viewsRails API Using Gem PUMA Development Environment >> Production
I have developed an API that connects in an oracle database is working properly in development, but when I try to run the GEM Puma in production, it gives error. command to execute *** SIGUSR2 not…