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...
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...
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",...
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...
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...
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...
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:
<...
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/>...
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...
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"&...