Scope has_many relationship
I have four models 1. Problem 1. User 1. Question 1. Reply ```ruby class Problem < ApplicationRecord has_many :questions end ``` ```ruby class User < ApplicationRecord has_many :questi...
Josh Goldman postedI have four models 1. Problem 1. User 1. Question 1. Reply ```ruby class Problem < ApplicationRecord has_many :questions end ``` ```ruby class User < ApplicationRecord has_many :questi...
Josh Goldman postedMy ActiveRecord queries are taking too much load time and slowing down my API response times. I don't even have much data in the databse, like for accounts table there are only 10 rows. I'm running...
Simmi Badhan postedHi Jacob, This post is from a while ago but hoping you can help as I'm working on a project that requires something similar. How did you "get a list of already booked appointments" as an array fo...
Emily repliedHey everyone, I'm just testing my first Rails app on mobile and whenever I submit a form I get a prompt to download the form target. See the screenshot below: [Download Prompt on iPhone8](https:/...
TensAndTwenties postedI followed along with the Online user tracking with ActionCable and was able to get it all working. I replicated a similar channel in another app and again it works great, however when I came to te...
Kyle Jobbins postedCould you please explain how you configured nginx because I am having the same problem.
felicianodev replied • SolvedHi! I'd like to split my rails application to microservices, such as - main app 1 - main app 2 - main app N - authentication and account management - administration console - marketing console (bla...
Alexey Poimtsev postedI'm in a similar position. I would like a load balanced cluster in Digital Ocean but I'd like to take advantage of their load balancers, Managed Postgres and Managed Redis. Is there a guide to conf...
Olly Headey replied • Solvedanyone? https://roadrunneremails.net ?
hammersxo repliedHey everyone, I have an internal messaging system in Rails 6. I was wondering how can I add the logic for a button to block the user in conversation that I'm messaging with. My setup and details...
Ulas postedI got this working with javascript. <%= link_to "Get started", { id: "store-sign-up" } %> document.addEventListener("DOMContentLoaded", () => { var modal = document.querySele...
Samantha O replied • SolvedI'm still trying to figure this out. Does anyone have any thoughts on this?
spacerobotTR repliedI have a static Jekyll site on my main Rails app in `/public/support/`. I would like to protect this site and only allow authenticated users to access it. Can I do that?
Dan Tappin postedI got this issue this noon and it has been solved by following this thread. Thanks guy.
Cuong Vo replied • SolvedHi - I built this simple app to practice with ActionMailer as I learn Rails (LINK: https://github.com/eleetyson/time-capsule). It works fine locally but when I deployed to Heroku, it seems that ...
Ethan Lee-Tyson postedHey! What's the context? I found with one of my apps, mp3 files were being uploaded to the server with different content-types... It turned out the OS and the browser was affecting them... On one ...
Simon Moro repliedHi there! I'd love to know if there's a straightforward way of implementing S3 accelerated uploads for certain users, with ActiveStorage. Essentially, I want my paid users to experience faster upl...
Simon Moro postedIs there a simple way to either extend the enum methods OR to override the current bang method? I have a lot of enum statuses that I update with bang. However, the rails enum bang method is writt...
Amie Walton postedanyone can help?
Chong Hwi replied