Questions tagged as 'ruby'

1
answer

Problem with Ruby Gem Chartkick

After switching to daylight saving time, I'm encountering a problem with Gem Chartkick . I put my query as follows: Ticket.unscoped.where('created_at >= ? ', Time.now - 10.days).group_by_day(:created_at).count The result returned w...
asked by 28.10.2014 / 18:09
1
answer

Uploading Ruby on Rails application to Heroku

I completely followed what was written in this tutorial and I got this error: root@neuber-HP-EliteBook-8460p:/home/neuber/node-js-sample/franca# git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.154'...
asked by 30.05.2014 / 23:42
2
answers

Ruby and Ruby on Rails version - Openshift

I tried to upload an application made in Ruby 2 and RoR 4 in Openshift and I could not. Is an application made in Ruby 2 compatible with Ruby 1.9? Which versions are supported by Openshift? The following is the error: ==> app-root/log...
asked by 08.05.2014 / 13:59
1
answer

Render a multi-site layout

I have the following situation, I have several sites with different layouts and database, but I wanted them to use the same administrative area, the same gems, because if I need to fix a bug in the administrative area or update a gem I would upd...
asked by 09.01.2015 / 12:54
1
answer

Rails - BD Relationship

I have a user table, where I have a required field cidade , and I have a contatos table (which is belongs_to: user ), but in the form it does not have the cidade field that is required for user . How do I p...
asked by 15.10.2018 / 17:33
1
answer

Register a "User" devise through seeds.rb

I am finalizing a project and want to create a default user. The entire user registry structure is performed by devise built into rails_admin. Through search I found this syntax below however it does not work: User.create(:email => 'admi...
asked by 10.02.2014 / 19:46
1
answer

Error performing continuous integration test - Travis-CI

For learning purposes I am using the services of Travis-CI to perform integration testing continues on a personal project. When running the test locally all pass, without errors. However, when running on Travis-CI there is this return. lin...
asked by 17.02.2014 / 18:57
1
answer

Why do not Booleans have a common class in Ruby?

Ruby does not have a class Boolean . I noticed that boolean objects are of specific classes depending on the value, see: true.class => TrueClass false.class => FalseClass Unlike other languages, such as C # and Java, where t...
asked by 02.01.2018 / 23:14
1
answer

Service Discovery Eureka Netflix

I have a SOA architecture with two stacks different one with java and another with ruby, I have a microservice using spring boot and other rails, and I'm trying to configure a Service Discovery with Eureka for java projects especially wit...
asked by 22.09.2017 / 14:22
2
answers

Change Login [Gem Devise Ruby On Rails]

Gem devise creates a login system with email and password. How do I change the email login form to a code, that is, instead of the user logging in via email, he or she enters a number or name?     
asked by 18.08.2017 / 02:21