I'm using Ruby on Rails 6, and I'm importing bootstrap from the application.html.erb file. The dropdown stops working when I press the back button on the browse
I am looking for how to trigger a validation on a parent when a child is modified or deleted. Some background in case I am asking the wrong question: I am tryin
I am upgrading a Rails 6.1.4 application from Ruby 2.6.10 to Ruby 2.7.6. With Ruby 2.7.6, WebMock no longer matches the Regular Expressions that worked perfect
I have a form and when I set a value, the value is displayed in the field, how to not display the value but keep the existing values when submitting the form: H
In Rails, when attaching a file to an object, is there a way to check if it is already attached to another object? And if so, can I then use this existing attac
I'm using Grover to render and download pdf copies of documents that are generated in my app and am having trouble applying css to it. When in grover's debug m
I'm getting the error in the title when I deploy my Rails 5 app. I recently updated my Gemfile to include some more recent versions. I don't have any issues on
I'm facing the following problem: I'm using an external API that returns a image hash that has multiple images. When I enter the show page for the element that
I'm trying to create a db for my rails project using [email protected] which was installed via homebrew. The installation was succesfull, but when I try to run: bin/rak
I'm trying to deploy a simple Rails app in heroku but I'm getting this message in the heroku logs: PG::UndefinedTable: ERROR: relation "entries" does not exist
index.html.erb <%= turbo_stream_from "posts" %> <%= turbo_frame_tag "posts" do %> <%= render partial:'posts/post', collection: @po
I've been writing tests with instance_doubles to stand in for message chains when I need more granularity in the midst of the chain. But, I'm wondering if I'm d
I'm new to ruby on rails. I installed ruby, sqlite3, node and yarn, run gem install rails and gem install sqlite3. when I run rails new <app_name>, I got
I am using WebSocket for comments on a post. ios user subscribe to the comment_channel and I got confirmation that the user successfully subscribed to comment_c
I've got these three classes class Totalizavel def retorna (qnt, valor) total = qnt * valor return total end end class Venda < Tota
I have a couple simple queries and I'm not sure what the best practice is. I've written them in 2 ways which produce the same result. Which is preferred? Or i
I'm using gem stripe in rails 7 and I'd like to access the checkout page to make the payments or cancel the order, however, since it is rails 7 (and does not ha
I am coding my own ERP. For the People (model class) I have the following validations: class People < ApplicationRecord # some code for N:M relations #
I am intending to write a generic rake task that allows me to destroy a model's records after taking in model name and ids as input params #lib/tasks/import.r
I have installed mysql2 in mac m1 using the below command gem uninstall mysql2 gem install mysql2 -v '0.3.21' -- --srcdir=/usr/local/Cellar/mysql/8.0.28_1/bin/i