
How do I render a (Stimulus) modal without user interaction?
1
Javascript
When a data value in my view meets certain criteria (e.g.: "< 0"), I want to render a modal (which is configured using Stimulus).
I know this is a noobish question, but I'm not finding obvious ...
Solved

Update and limit the number of nested attributes in Ruby on Rails
1
Rails
I have a `Question` model related to `Option` model. Whenever I try to update question and related options, new options are created instead of updating an existing option. Why is it happening like ...

How to use Javascript via Webpacker in Rails 6 Discussion
17
General
Alternatively to the webpacker way of require the flatpicker css in the `packs/application.js` you can do someting like:
```
/*
*= require flatpicker/dist/flatpicker
*/
```
In your rails `app/a...
Tony Dehnke replied

I'm having issues with in-app notifications on my App
1
Rails
Hello! Can someone please enlighten me on how to create notifications (In-app) for this type of routes
I want to display notifications when comments are made on episodes. This worked well when i di...
Solved

How do I use easyautocomplete in rails 6?
7
Rails
I tried adding it with yarn and through rails assets but nothings seems to work.
Solved

Rails Webpack caching
1
Javascript
I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have...
Solved

Connecting User with devise
1
General
Hello Go Rails Community,
I'm looking for some help, let's say I have an app that's for married couples. If the husband signs up for the app he hac send and invite to his wife and vice versa. Wha...

ibm Iseries AS/400 DB2
4
Databases
I'm trying to connect using some of the gems:sequel, dbi, ibm_db, jdbc-as400-adapterWithout success, does anyone have the same problem?
Solved

How to stay strictly in Ruby ?
1
Rails
Hello, I'm a newbie at Rails. Let's say I have this simple form:
<%= form_for @article do |f| %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.labe...

Routing for Admin area not working
3
Rails
I've got an application that makes use of an admin area for managing Articles on the frontend.
Its a simple CRUD app where pretty much everything Admin related is namespaced and inside admin folder...
Solved

Attaching file to email Active Storage
1
Rails
Hi Guys,
I am trying to attach a pdf to an email via active storage. Here is my code below and the error I am getting.
class Assignment < ApplicationRecord
has_one_attached :upload
belongs...

ruby on rails nested model relationship and routes
9
Rails
I have these models: `Sport,` `Country,` `League` and `Match `
Also I do have `SportsController,` `CountriesController`, `LeaguesControlle`r and `MatchsController`
So the question is:
1: how i ca...

Why am I not getting any data inside the dropdown in browser?
2
Rails
My Controller has following code
`@select = Store.find(current_user.store_id)`
My View has:
```
<%= form_with(model:@store, local: true) do |f| %>
<%= f.select :id, options_for_select(@sel...

How do I set and use a default image with active storage?
3
Rails
If the User does not upload an image using active storage, how do I set a default image for that record?

How to start and stop ngrok with Thin server?
3
Servers
I'm using the basic Thin server on my dev machine and I'd like to start and stop ngrok automatically with `rails s` - how do I do that?I found several articles but they all involve more complex set...
Solved

How can I send emails 30 days before the time limit in rails?
3
Rails
I have a system that can send email every time I create a post, but I also need to notify 30 days before the expiration date through email, as you may know, the expiration date is variable and I co...
Solved

NoMethodError in Contacts#edit
1
Rails
Hi all, I am new to Ruby as well as RailsI am working my way through a treehouse course and I have hit a bit of an obstacle.This is what my routes file looks likeRails.application.routes.draw do
...

How do i generate links like shopify does ****.myshopify.com ?
1
Rails
Hey, guys i wanna know how to generate a unique url foreach user but didn't know how to do it.#Stuck

How do I make my Stripe Charges more robust [Background Worker & Idempotent]?
7
Rails
One thing I don't want to have to deal with are refunds because a customer happened to get charged twice. I want to ensure that I've designed my Rails app to be robust in the face of failure before...
Solved

Issue with inline-form from stimulus twitter example
2
Javascript
I have a rails 5.1 app that I am working the stimulus twitter example into. Instead of tweets they are going to be comments. The comments are linked to servicerequests. So on the servicerequest/sho...