rails s -e production
the page is blocked
=> Booting Puma
=> Rails 5.1.4 application starting in production
=> Run 'rails server -h' for more startup options
Puma starting in single mode...
* Version 3.10.0 (rub...
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",...
Perform all the configuration following a video tutorial, as url of the site explain that it should be: link .
However, trying to authenticate generates the following error.
I have the following error in rails when generating a form:
No route matches {: action = > "elec_config",: controller = > "atoms"}
missing required keys: [: query_val]
I have a model called Atom with 3 fields in the database an...
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/>...
The project is already in production, I would like to know how to revert every time an error of the url comes up, like the example below, that an image or something appears that this url does not exist. thanks
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"&...
hello is that they are not keeping me the parameters charge, management and locality and I do not know why who helps me thanks
Unpermitted parameters:: position,: management,: locality
schema.rb
create_table "users", force: :cascade...