Questions tagged as 'ruby'

1
answer

Error when using rhc

I'm getting an error when I try to use $ rhc setup , I can not understand why the error, can someone tell me why and how to resolve it? to a section that says it has not found rhc, however it is installed: Successfully installed rhc-...
asked by 28.04.2016 / 18:03
2
answers

How to pass an Array to the IN clause of a flat query?

I'm using ActiveRecord to run queries on several different databases. In one of the queries, I have to do the following: publications_to_read = [1,2,3,4] ActiveRecord::Base.connection.execute("ALTER TABLE publications SET readed = TRUE WHERE i...
asked by 13.04.2016 / 02:22
1
answer

Error not detected by cucumber test

I'm using the version of gem aruba 0.13.0 and cucumber 2.x.x I would like to know how to detect the following error using a step definition of aruba. More specifically if the exit status was successful and if it is possible by the type of err...
asked by 03.02.2016 / 15:47
1
answer

Fill an association from another - ruby on rails

I have an application for scheduling services and I'm not able to populate a selectbox from the selection made in another. Explaining better: I have a selectbox with the available services and when I select a service, I want to fill the selectbo...
asked by 21.01.2016 / 13:46
1
answer

Class Person Individuals Individuals. Rails 4

I'm developing a APP in Rails , and the following question came up for the Person class. The structure of these classes looks like this: Pessoa { tipo, status } PessoaJuridica { razãoSocial, nomeFantasia, CNPJ, IE, IM } PessoaF...
asked by 24.02.2016 / 16:47
1
answer

Add all solver groups in the Select Box

I have a Select Box with some solver groups and a button to add them to the bank. When I click the button, I add the solver group to the bank. But this is done one at a time. I would like to do this all at once. Here is my code below: <%...
asked by 24.12.2015 / 12:48
1
answer

Error while running a Rake Task

I need to perform some custom tasks, however, whenever I try, I get the following message: Application has been already initialized. I searched in various places, including the OS in English, but to no avail. It does not seem to have a de...
asked by 07.12.2015 / 16:34
1
answer

Error trying to install Ruby Gosu library (OS X)

I'm trying to install the ruby Gosu library with the sudo gem install gosu command, but it returns the following error message: ERROR: Error installing gosu: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby...
asked by 08.12.2015 / 01:36
0
answers

Code runs in eclipse but not when compiling

I'm creating a minecraft mod that uses JRuby to run my scripts inside the mod. It runs perfectly in the eclipse, but only in it. If I compile the mod or run it by gradlew runClient it does not work, it results in this error: org.jruby.e...
asked by 27.07.2015 / 19:32
2
answers

Error undefined method 'sign_in_as!'

I have the following error:    Failure / Error: sign_in_as! (user) NoMethodError: undefined method   'sign_in_as!' for       Someonecouldhelpme!Ialreadyaddedthemodule,butnothing!Iamsogratefultoallwhocanhelpme! link I've now tried...
asked by 10.07.2015 / 18:53