Questions tagged as 'ruby-on-rails'

1
answer

Did I make a mistake when uploading a rails application in heroku?

I was trying to upload an application to Heroku , in fact I already achieved it but I executed some commands and I do not know if my information is at risk, I would appreciate the help of this community; as an extra detail, follow this tutoria...
asked by 06.08.2017 / 06:08
1
answer

Error 400 AJAX in Rails

Good community. I present a problem in Rails with a route that I specify by means of AJAX which gives me an error of 400 Bad Request . This is my way: ruta archivo:app/views/admin/orders/_form.html.haml .wrapper .wrapper-body.conta...
asked by 24.08.2017 / 02:03
0
answers

Rails. Error with delayed_job

I am automating some emails in my application with the gem delayed_job . Well, when I do rake jobs:work and the job is executed, I get the following error:    Job Delayed :: PerformableMethod (id = 10) FAILED permanently with   Delaye...
asked by 18.07.2017 / 22:00
1
answer

I can not send mail in rails

I can not send emails from my application in rails, the version of rails I use is 5.1.2 . I attach pieces of code:    app / mailers / example_mailer.rb class ExampleMailer < ApplicationMailer default from: '[email protected]' d...
asked by 25.07.2017 / 17:20
0
answers

How can I upload files in Rails

I would like to know how to generate a form in Rails so that I can upload files without problems, I have read several tutorials, but it still costs me a bit to do it. Controller: class ContratosController < ApplicationController DOCUME...
asked by 28.07.2017 / 03:34
1
answer

rails g model does not work [duplicated]

I have this problem, I've tried a few solutions offered by San Google but I have not got to the point. The machine is a i7 with Windows 7 32b , and with ruby 2.3.3 and rails 5.1.2 . I will be very grateful for your help. C:\Users\Ernes...
asked by 28.06.2017 / 02:58
1
answer

because the master detail fails ruby on rails

It is a detail teacher the father meetings the child is details_reuniones, details_reuniones, details_reuniones has association with product. In this form there is autocomplete and select. is a nested form does not work is to add more product...
asked by 22.06.2017 / 15:37
1
answer

Update a record in a table and from this create a record in another table

I have a table called products, and when I select a product, it must be deducted from that product from the product table and a record must be created in another table called cart The schema tables are: ActiveRecord :: Schema.define (version:...
asked by 24.06.2017 / 17:12
1
answer

Ruby on Rails v5.1.1

Dear network, I am starting to develop Ruby on Rails and I am faced with the following problem. The controller was created in the following way: rails g controller Pages inicio The driver code is as follows: The Appl...
asked by 23.06.2017 / 01:06
2
answers

Route a Rails modal view

Greetings! Is there any way to route a modal view? Imagine that they are in the index of X resource, click on a record, the normal modal comes out, but I need that modal to have a url reflected in the address bar as FB offers the url of that mod...
asked by 19.06.2017 / 20:46