Questions tagged as 'ruby-on-rails'

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

How to set up your own domain in Heroku?

I bought a domain and I need to configure it with my application that is in Heroku. How to do this?     
asked by 14.05.2014 / 16:24
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

How to send diary email?

I have an application in Ruby on Rails that I need to send a daily email. I thought about using class Mailer of rails . What I do not know is whether it is possible to check the time to perform automated submission using rails...
asked by 27.03.2014 / 11:47
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

How to avoid storing large SELECT memory in Rails?

In the routine I'm developing, I make a simple SELECT in the database, just in a table: Model.select("id").where(:tipo => 2).find_each do |registro| puts registro.id end But this select returns around 160,000 records. Then the system...
asked by 15.12.2017 / 18:51
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