Questions tagged as 'ruby-on-rails'

1
answer

error in Action Controller

I get it:    error undefined method '&' for "application": String I'm trying to do this method def registro _layout 'application' @usuario = Usuarios.new end end is a forms for user registration thanks !!     
asked by 08.08.2018 / 19:47
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 / 14: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 / 19: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 / 22:32
0
answers

Error inserting into table with composite_primary_keys

I'm programming with the version 2.3.5 of ruby, the version of activerecord-sqlserver-adapter (5.1.6) and the gem: composite_primary_keys (10.0.2) , and when inserting in a table nn, with its primary keys defined with the gem...
asked by 22.02.2018 / 12:06
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 / 19: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 / 05:17
1
answer

undefined local variable or method 'data_state' for #MaximaController: 0x667fd58

I apologize, but it must be to weariness, I do not see the error: ( the driver: class MaximosController < ApplicationController before_action :set_maximo, only: [:show, :edit, :update, :destroy] # GET /maximos # GET /maximos.json...
asked by 02.11.2017 / 17:51
1
answer

send email ruby on rails

I want you to check if it is true and send the mail, but the mail does not arrive. reunion.rb after_save :autorizar def autorizar if self.auto = true ReunionMailer.autorizar_email(Reunion.find(self.id)).deliver end end...
asked by 18.10.2017 / 16:18
0
answers

I have an error when starting with nginx rails5

I have an error when starting with nginx the port is 3000 version rvm 2.3.1 version rails 5.1.1 file path administrador@administrador-Lenovo-Product:~/Escritorio/sider sudo nano /etc/nginx/nginx.conf user www-data; w...
asked by 20.11.2017 / 15:53