Questions tagged as 'ruby'

1
answer

help with locked code and ilogic error ruby

Greetings. I have the following problem was finishing validating the following code and and it works well if I place a whole number works but it does not work well as this is the image I think it is a problem of the meter because if I omit it w...
asked by 15.11.2017 / 21:03
2
answers

I need to analyze and compare a string with a sub string

I want to select a sub-string obtained from a text file and analyze it. Text file: NADSU 78000mc0cl0Css NADBY 7808810008659 PAT 1 21D 089 I need to read and later analyze line by line of a .txt file after that I would like to verify by m...
asked by 14.11.2017 / 18:37
0
answers

link_to ruby on rails

Hi, I want to save with link_to since I keep more attributes with this one. input t.string: provecancela show.html.erb <%= simple_form_for(@reunion) do |f| %> <%= f.input :provecancela, label: "Por que cancela",...
asked by 08.11.2017 / 23:04
0
answers

problems with database registration ends null or logout

Well, I have the following problem: every time the cycle passes, I save each variable in the database but I can not do it. It saves me either an empty record or a record with the code, the type of order and the date in another registry. I alread...
asked by 22.11.2017 / 19:47
1
answer

How do I look for a label by printing its ruby content?

I need to make a code that reads me web pages, and that incidentally collects the re-address links and copies what they have inside, it's in ruby require 'net/http' pagina = Net::HTTP.get(ARGV[0],ARGV[1]) puts "...Leyendo la pagina....\n...
asked by 05.11.2017 / 20:56
1
answer

Canvas-lms: SMTP From address may not be blank: nil

I installed Canvas-Lms however, I could not send emails from the application, it always tells me the SMTP error From address may not be blank: nil I have configured the outgoin_mail.yml correctly, however it shows the same error. Can som...
asked by 30.10.2017 / 18:18
1
answer

Is there a way to change the form structure of the form without affecting its functionality?

I'm handling the error messages using the gem toastr and a function in javascript that works with the gem. One of the parameters is resource and in the partial form _comments it does not have it, and is defined as follows: <...
asked by 02.11.2017 / 02:39
1
answer

How can you put a recaptcha with devise controller in ROR

I have this code: In app / views / devise / registrations I have the following code: <div class="row"> <div class="col-md-4 col-md-offset-4"> <h2 class="text-center">Sign up</h2> <br/>...
asked by 16.11.2017 / 21:43
1
answer

ActionController :: UrlGenerationError in Theme # new

I have this error when trying to pass parameters by link_to to another controller: Models class Theme < ApplicationRecord belongs_to :category end class Category < ApplicationRecord has_many :themes end Controller...
asked by 14.10.2017 / 20:53
1
answer

show shows error datatime ruby on rails

I have a datetime field and the normal save but render to the show I get this error This is the error: .to_s ("% d-% m-% Y") show.html.erb <%= @snack.fecha_entrega.to_s("%d-%m-%Y")%> form <div class="form-group"&...
asked by 09.10.2017 / 22:21