Questions tagged as 'gem'

4
answers

How to set --no-ri --no-rdoc as default when using gem install?

Always giving the 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 this?     
asked by 13.12.2013 / 13:31
1
answer

Statistic in Ruby on Rails

I have the following problem, I need my system to generate some statistical data from a vector, for example: vetor = [1, 5, 2, 1, 6, 30, 2, 7, 2, 80] I need to extract some data from it, like: Medium Medium Fashion Minimum...
asked by 07.08.2014 / 13:43
4
answers

Mask in Rails fields

I'm getting a theoretically simple thing, I'm looking for a date mask on my application.js : //= require maskedinput jQuery(function($){ $("‪#‎datadoacao‬").mask("99/99/9999"); }); In my partial form: <%= f.text_field :data_doaca...
asked by 27.07.2016 / 05:32
1
answer

HEROKU connect to mysql database

I'm doing reverse engineering on a system, and I want to use the same database as the old system. But I am not able to connect the system bank in production with this database. And for being in MYSQL I'm using the mysql2 gem, as follows: herok...
asked by 03.10.2016 / 19:03
1
answer

How do I add more rows to a class in Ruby?

I started to venture into the rubygems world. I am developing a gem to generate the assets of my twitter bootstrap-style application, since I intend to reuse my front-end code. All I need to do is put the assets in the correct places, add some h...
asked by 23.03.2015 / 13:41
1
answer

Rails 4 Error each_with_index when using activerecord-import

I'm trying to import an app into Rails 4, using the gem activerecord-import . When I try to run the command: Detail.import( columns, values, :validate => false ,:timestamps => false ) I get an error like this: **NoMethodEr...
asked by 01.06.2016 / 18:10
1
answer

Humanize in accented characters

I have the following problem, I have some error messages on my system, but when there are accents in the messages, the humanize does not apply to these characters, I tried to use the gem 'brazilian-rails' , but since it is discontinued, so...
asked by 30.09.2014 / 16:13
2
answers

How to update Gem on windows?

My problem is that I can not update the gem I downloaded rubyInstaller I tried to run the command to update: gem update rails --no-document But unfortunately does not update gives the error: gem update rails --no-document...
asked by 03.11.2016 / 14:34
1
answer

Is there a need to declare the same dependency on Gemfile and gemspec?

I have several engines in my API, all depend on Artemis::Core . I want to understand the difference between declaring in Gemfile , for example, gem artemis-core : source 'https://rubygems.org' gem 'artemis-core', '~> 0...
asked by 17.03.2017 / 22:56
1
answer

Error installing SASS in Windows 8

   ERROR: Could not find a valid gem 'sass' (> = 0), here is why:            Unable to download data from link - SSL_connect returned = 1> errno = 0 state = SSLv3 read server certificate B: certificate verify failed > (< a href="https://...
asked by 27.01.2015 / 13:34