Ruby on Rails Community Forum

How to use stimulus-autocomplete events when triggered

0
General
Ive got the stimulus-autocomplete controller installed and working, but Im still learning how to work with stimulus. The documentation for the controller says there are events that get fired off a...
Alex Deering posted

Persist file info after rails validation error

0
General
Im working on my main form and have some form validations and running into an issue with a new form not maintaining the image upload after a validation error reloads the page. Here is my form-grou...
Alex Deering posted

Active storage, remove record, but not file on Google Storage

0
Rails
Images are stored from one rails app, but records are syncronised to another app via graphql. What is the option for the second app to delete the record from itself without destroying the original ...
Simon Hutchings posted

acts_as_shopping_cart documentation?

0
Gems / Libraries
Hello everyone, I'm trying to build a shopping cart for my new project and i decided to use the acts_as_shopping_cart gem, well didnt really decide to but really the only one i could find without g...
Darren Nickerson posted

Devise Masquerade with multiple Devise User Models

0
Rails
Hi All, Has anyone used devise masquerade before with multiple devise models. I have and Admin model and a User model. I'm having issues and when I try implementing it, I can't seem to login as a...
Stephen Sizer posted

Convert a rails web application to offline or executable

0
Rails
I have tried to use ruby packer and traveling Ruby and others but as I am new to programming it is difficult for me. I'm looking for a programmer to convert a web application to offline or executab...
Felix Pujols posted

Multiple File Uploads with a nice JS interface?

2
General
I am going with an 'Attachment' model which belongs to other models (just one for now). The 'Attachment' model to add other fields and funtionality down the road. Each record has one file uploade...
Dan Tappin replied

How do I build an authentication system with rails + graphql (backend) and rect (front-end)

0
Rails
I want to build an authentication system with rails and graphql
Gonzalo Reyes posted

Rails 6: How do you associate specific stylesheet and external js plugin to a layout

0
General
I am working on Ruby on Rails 6. My application has a controller that uses a different layout called "special": ``` class BoxController < ApplicationController layout "special" ... end ``` ...
Joan Gabun posted

Issue with bootstrap sprockets in application.js

3
Rails
Hello, As said in the title, I get an error message when I try to access my localhost:3000. The message is : ``` Sprockets::FileNotFound in Welcome#index Showing /home/dameaw/work/five/meawini...
Thomas Blumenfeld replied

What is the purpose of node_modules folder in rails 6?

1
Rails
What is the purpose of node_modules folder in rails 6?
Thomas Blumenfeld replied

How to solve the [GET] “/login” routing error while building shopify app using ruby on rails?

2
Gems / Libraries
I am getting a Routing error says " no routes matches [GET] "/login" " and also in ruby libraries. During running on a server it displays page not found and the logs for that error is Logs show [GE...
Gaurav Agarwal replied

Rails 6: Separate styles and layout for dashboard and main (front) site

1
Rails
I will try to explain my issue as much as I can. I hope you guys can understand and give me an idea / help me. So I am working on a practice app. There are two separate bootstrap html/css design...
Thomas Blumenfeld replied

Sending Alerts Based on Threshold

0
Rails
I am building an app wherein user can create an alert based on current value of average or sum of table column. For example if SUM of column A is < 100 a notification should be sent to receipie...
Paulo Avelino posted

How I do use Rails.ajax in vueJs components using webpacker in rails 6

2
Rails
I have created the brand new application in rails 6 with webpacker and VueJS. I am trying to use the `Rails.ajax` to send ajax request request from Vue component to rails controller. I have include...
Marco Beffa replied

PG conflict changing the name of an attribute in the database

0
General
Hi everyone, I'm having an issue after changing the name in a "Relationship" Controller and Model (the name is "follow / unfollow" and before was "meaw / unmeaw" (which I endend founding pretty ba...
Damian Nelwep posted

Distribute Records Uploaded Evenly to Devise Users

0
Rails
If we have multiple users i.e 10 that each check records in index view, which are updated daily via a csv upload, any thoughts on a good way to distribute those records evenly, to spread workload?
Daniel Chapman posted

How do I implement a comment section into my rails app?

0
Rails
So I followed a tutorial on Youtube so that I could make a simple video sharing website such as Youtube itself -> https://www.youtube.com/watch?v=uV1hWKtza0g I want to inplement a comment secti...
Hilldamn posted

Delete images with active storage in rails app?

2
Rails
I am using this tutorial ->https://www.youtube.com/watch?v=fJ8kD4de72Q. So I followed the Youtube video and it worked perfectly, but I want to add a feature so that the user can to delete the pr...
Hilldamn replied

Streaming remote files to S3 🤔

0
Rails
For each user request I need to save two remote files to AWS S3. I have the remote URLs of each - one image JPG ~100KB and one audio MP3 ~1.5MB. I know I can do this by downloading each file to `t...
Daniel Weaver posted

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.