Questions tagged as 'ruby'

0
answers

How to solve the NoUrlForPage problem?

I need to implement an automation in cucumber but the application that I need to test is an IP address so I can not get a valid URL, the strange thing is that in the test it can find the url but closes the browser and does not continue the code....
asked by 27.09.2018 / 19:54
1
answer

How to put a .gem in Gemfile

Good afternoon, I have a problem installing a .gem through Gemfile. In Gemfile you are: gem 'hanaclient', path: '/usr/sap/hdbclient/ruby/hanaclient' Inside the / usr / sap / hdbclient / ruby / hanaclient (ls): hanaclient-2.3.119-x86_64-...
asked by 02.10.2018 / 18:10
1
answer

Rails 5: Iugu and recurring payment

I looked in the Iugu documentation what the function in Rails called to create a recurring payment in iugu, but I could not find it. Can someone give me a light on this? There is Iugu::Subscription.create , but I would like the specific fu...
asked by 20.09.2018 / 13:40
0
answers

RubyMine Configuration Autocomplete

Hello I need to configure my IDE so that autocomplete functions are effective. When I ask for user input for example, IDE does not provide similar functions to complete, it only suggests variables already in the code. EX:    = begin...
asked by 30.08.2018 / 19:59
3
answers

How to declare a constant in Ruby?

How to declare a constant in Ruby? In other languages I do something like: const CONSTANTE = 1024 And CONSTANTE can not be changed at run time. But I do not think anything like it in Ruby.     
asked by 13.11.2017 / 15:21
1
answer

Problem with require in Ruby

I am studying for the book "Ruby learn to program in the most amusing Language" of the author "Lucas Souza" editor "House of the code". In my requirements file when I try to run the following error: Traceback (most recent call last): 6:...
asked by 01.08.2018 / 22:16
1
answer

Autocomplete of gems in text editor

Personal is it possible to get an autocomplete experience in some free text editor, similar to what Rubymine does by indexing the gems code? I tried several alternatives in vscode, how to use cTag, but I can only go to the definition of gem (ope...
asked by 30.07.2018 / 16:57
0
answers

Error running tests using Sinatra and gem pg_search

I'm trying to run some tests using Sinatra's ruby, however I'm encountering this problem. ➜ onebitbot git:(master) docker-compose run --rm website rspec spec/services/faq/create_service_spec.rb Starting onebitbot_postgres_1 ... done An e...
asked by 10.07.2018 / 03:03
2
answers

set shell user to call script in rails

I need to call a shell script from rails, with a specific shell user. Example: update_response = '#{deploy_dir}/./update.sh' By default my system is using root. I would like to know, given this example, if you have how to specify the...
asked by 03.07.2018 / 15:35
1
answer

Heroku Rails 4 assets do not load

After I deploy these files below are not being loaded. Thisismydirectory Thisismyapplication.rb Heretheyarebeingcalled<%=stylesheet_link_tag"home" %> <%= javascript_include_tag "home" %> <img class="client" src="<%= asset_...
asked by 28.06.2018 / 19:22