Questions tagged as 'ruby'

0
answers

Error trying to install RVM: Ruby Version Manager on Debian 9 "Stretch"

RVM installation error Running error './configure Hi, I've been trying to install RVM, everything to be able to install Ruby with RVM, and be able to handle the versions better. But I have fallen into a problem, I comment on the following:...
asked by 10.08.2018 / 08:59
0
answers

Ruby On Rails - Update becomes very slow when updating

When I load the parameters that are in another table update one by one This is the code, in the parameters I have an arrangement: @ordenes_servicio.update(ordenes_servicio_params)    parameters def ordenes_servicio_params params....
asked by 01.08.2018 / 00:01
1
answer

Running Tests in Ruby

I need to run some tests on ruby, and although I have followed the steps of the documentation I always get the same mistakes. I followed these steps: -rake db:test:load -rake db:test:preparate I already have my "test" folder and in models t...
asked by 28.07.2018 / 23:17
1
answer

Why can not I load this Boostrap4 template into Rails?

It turns out that I can not load a boostrap4 template and rails throws me the following problem Showing /Users/Brian/Desktop/nuevo/final_proyect/app/views/layouts/application.html.erb where line #10 raised: couldn't find file 'main' with type...
asked by 17.07.2018 / 08:01
1
answer

Problems in rails with non-existent validations

Well the problem that I present is that when adding the gem carrierwave-google-storage I am presenting problems throughout the app executing validations (which do not exist) throughout the application and are incongruent Example: {...
asked by 12.07.2018 / 17:16
1
answer

Bundler problems

Hello friends when trying to run my app shows me the following error: You are trying to install in deployment mode after changing your Gemfile. Run 'bundle install' elsewhere and add the updated Gemfile.lock to version control. The dependenci...
asked by 05.07.2018 / 00:57
0
answers

Gemfile does not accept changes.

On my production system, I have the gem mysql2 0.3.11 installed, but locally I have mysql2 0.3.18 installed because it is not able to find the 0.3.11 when bundle install or gem install mysql2 0.3.11 I have t...
asked by 03.07.2018 / 11:45
1
answer

How to test the Ruby code

I have to test the code that I have of a small application in Ruby. I wanted to do it automatically with Sonarqube, but I see that Ruby does not support. I installed a plugin for Ruby, but the program remains hung. So now I wanted to try ruby mo...
asked by 03.07.2018 / 15:03
1
answer

Check stock of an inventory product with Ruby on Rails

I have a small inventory system ready which works perfectly, however, I have not been able to get it to check the availability of a product at the time of making a sale, although on the one hand it is checking if there are stocks, and on the oth...
asked by 30.06.2018 / 08:31
0
answers

Error saving rails data

I mention my problem, when generating records using a callback (I already tried passing them directly but it does not work either) I always create the record with an id following this one. association: has_many :modelo_hijo se...
asked by 06.06.2018 / 23:24