I need you to have this range: 8:00 AM - 8:00 PM
= f.input :start , :ampm => true, :minute_step => 60, :prompt => { :Hora => "Hour", :minutos => false }, :required => false
Good morning, I have the following query that does not work for me:
def self.search(profesor) ->pasa como parametro el nombre del profesor
Curso.joins(:user).where("LOWER(users.name) LIKE ?", "%#{profesor}%")
end
I have a course...
I have a problem with this type of field that is inside my form and it is that when trying to save that value inside my bd, I automatically assign a zero to this field, so it does not register the value that I want .
This is the code of my fo...
I'm doing a procedure to store the cache in a query to the database in rails, but when I try to test the functionality in the console it does not work for me. It does not save the record in the cache.
I'm using
Rails 5.2.2
ruby 2.5.1p57...
My problem is that no project appears that I believe in rails in the projects folder I have in windows 10.
I have the following in the box:
vagrant@vagrant-ubuntu-trusty-64:~$ ls
projects proyecto rails
In the vagrantfile I have this:
c...
Currently I have a survey in which I can perform short, long and numerical answers, however I have certain doubts when implementing multiple selectable answers, that is, the user instead of writing in a field will select a response within from a...
I have a scaffold table where I enter clients, I have a select where my option I consult them with an each do, I select it and I print it with a javascript, I want that data to be the only ones that are leaked to my pdf as a header.
Inquiry...
I'm wanting to make a nested form in rails, with fronted in stimulus js.
In the case a Provider can have many contacts, then in the Supplier form I must add a button that allows adding inputs to load Contacts as many times as I want.
_form.ht...
I have a show method that must render objects json of three models that are related to each other by their id .
The models are the following:
class Company < ApplicationRecord
has_many :areas
end
class Area <...
I have been creating a view in the form, which has images, but I can not find the way to show the previous images that I am selecting to leave or remove them before uploading them to the bd, either to create or to edit. I enclose my form and I a...