Questions tagged as 'ruby'

0
answers

Problem when uploading a file with ruby to SAP with an RFC

I am trying to automatically upload certain files to SAP using an RFC created for this purpose. If I use the RFC from the application, it works correctly but when I try it from the ruby application, at the time of putting the files in the corres...
asked by 24.07.2018 / 11:57
1
answer

Change the option color chosen in select

I have a select called "priority" that has 3 options: high, medium and low. I would like that when you select high, I put the name "high" in red, "medium" in yellow and "low" in green. So in my view, I will get my list of priorities wi...
asked by 14.06.2018 / 12:14
1
answer

Update multiple records in the BD, 1 time per record in Rails

I have a code that is updating user registries in a DB, but it is updating the registration of each user the number of times there are users in the database, eg. I have 3 users = > medic1, medic2, medic4 in the SQL you can see that it is upda...
asked by 19.06.2018 / 17:04
0
answers

How to be in sanbox mode?

Hello, I am developing a payment gateway with ruby on rails and a paid market and I have the following question This is what I have developed in my controller $mp = MercadoPago.new('XXXXXX', 'XXXXXX') preference_data = {...
asked by 26.04.2018 / 20:32
1
answer

access the indexes of a ruby hash

I am doing a program to eliminate surpluses from an array, if we have more elements than maxOcurrences we omit them. For example    [20,37,20,21] = > [20,37,21] My problem in particular is to access the indexes of a hash, thi...
asked by 06.04.2018 / 01:50
1
answer

How to make a linked list in Ruby

I have class Nodo and class Lista to call them from Main ; in Java I've done it but I do not know how to Ruby . In Java I would have what it is: class Nodo{ String nombre, id, tel; Nodo enlace = null ; } wit...
asked by 02.03.2018 / 04:21
1
answer

Scope ruby comments rated lower

I'm a neophyte in this Ruby, and for an application I'm doing, I need to define a method and a scope to show me the worst rated comments in ascending order: first worst and then improving. I have written the inverse, thanks to some guidelines...
asked by 21.02.2018 / 18:55
1
answer

Do I have a problem with the paperclip in rails?

my problem is the following I want to make a small data bank in which I want to upload images of each bank logo. I use the gem of a paperclip and it really has given me headaches, it helps me in the connection with the user of devise but my prob...
asked by 19.02.2018 / 18:31
0
answers

Error installing Jekyll: "ERROR: Failed to build gem native extension."

A week ago I was quiet using jekyll .. I only had to install Ruby and Ruby on rails .. 2 or 3 days ago my Windows 10 updated itself and for some reason from now every time I try to install Jekyll I get:    Temporarily enhancing PATH for MSYS...
asked by 16.01.2018 / 04:17
0
answers

There was an error accessing '/home/userlinux/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions'

I have a problem creating new applications in Ruby on Rails ; I execute the rails new "myapp" command and it gives me this error:    There was an error accessing /home/userlinux/.bundle/cache/compact_index/rubygems.org.443.29b0360b...
asked by 16.09.2017 / 23:06