I created my first API in Rails, and I'm using a simple template with to create a basic Crud, I managed to put my application to work I created the GET method cute little returned 200, only that in my POST it is returning the following error in...
I would like this code to take two numbers and display the divisible numbers for the first, the second, and the two. But I was not able to make use of the current AND for this case, because the array div_pelos2 returns empty.
def self.divisive...
I'm using Gem Devise to create a login system. However, my project requires 2 login verification fields instead of just 1. For example, the company has 5 departments, the user has the code 0010 and works in department 1, so for his login he woul...
Hello,
I'm using gem devise for a project of its own and a question has arisen, how do I leave just one free route, for example I want all other routes to need login and password minus the main page.
I did some research and got to this li...
I'm looking for a way to add a variable with increment to add to the id of a div, could anyone tell me the most recommended way to do this?
My difficulty in making this increment is due to cocoon that is used to call this render
<%= li...
I'm having trouble with methods with parameter passing, the code runs, but it buga when I step to var within one method and receive as parameter in another. I'm new to Ruby.
def player_welcome
puts "Seja bem vindo ao Jogo de Adivinhação !!...
I have this relationship
.
How do I query on ActiveRecord to return data for Works , WorkZei and Wi_schools ?
I've tried it like this:
r = Responsible.find(1)
students = r.students
students.each {|s| s.scho...
I want to download a pdf file to process on my controller and then return it as it gets rendered in the backend , I would like a loading bar or circle to appear. However, I'm having trouble sending the file asynchronously. How do I send an asyn...