Questions tagged [ruby-on-rails-5]

If you have questions or concerns related to version 5.x.y of Rails, please use this tag. For general Ruby on Rails inquiries, utilize the [ruby-on-rails] tag.

What is the method for conducting an Ajax request?

Currently, I am deeply involved in a personal project to enhance my skills with Rails. The project involves developing a task management application that encompasses three primary states: todo, in progress, and done. After numerous days of trial and error, ...

Ruby on Rails allows for the selection of values in a dropdown menu to trigger the visibility of different sections of HTML

As a newcomer to Rails, I was able to successfully implement the onclick function for a f.checkbox element. Now, my challenge lies in achieving a similar functionality for a f.select element within a _form. Below is the code snippet that works for a chec ...

Integration of real-time messaging feature using Action Cable between React frontend and Rails

I've been experimenting with different approaches, but I'm struggling to send messages to the clients successfully. Within this application, there is a React component responsible for handling channel subscriptions. While my console confirms tha ...

Obtaining a JSON-formatted error log backtrace in Rails

One of the challenges I faced in production was converting my logs output to JSON using lograge. It made it convenient for displaying on various log services like Amazon. config.lograge.enabled = true config.lograge.formatter = Lograge::Formatters::Logs ...

"Effortless alignment: Centralizing CSS styling across the entire

I need help placing a loading spinner in the center of my screen, ensuring it works on both mobile and desktop devices. Here is my current CSS code: .spinner { width: 100px; height: 100px; position:absolute; top: 50%; left: 50%; margin: 100px ...