Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

Stimulus Reflex not replacing element?

0
Rails
I have a view that has a search bar and a card deck. I'm trying to use stimulus reflect to search the card deck and for some reason my card deck is not re-rendering. Some of my view updated but t...

How to customize jsonapi-serializer caching namespace

0
Rails
In my rails application I have `categories` which are classified based on location. I want to cache these categories on serializer level by using `jsonapi-serializer`'s caching method `cache_option...
mohamed31195 posted

How can I include nested comments into an existing project?

0
Rails
PG::UndefinedTable: ERROR: relation "commentables" does not exist when rake db:migrate
Berkovich Pavel posted

How do I execute a sudo command over SSH?

1
Servers
I'm building a portal to manage our server farm. I need to create an SSH connection and then execute some commands (bash scripts) however this commands block the SSH process sudo -u deployer -H bas...
sacara replied

How to serve images assets from AWS S3 via Cloudflare CDN with Rails and Shrine Gem?

0
General
I use the [Shrine gem](https://github.com/shrinerb/shrine) to upload images to AWS S3 from my Rails app. Now I’m trying to load the asset trough Cloudflare CDN, but then my images fail to load. H...
Tommy posted

Many-to-Many associations break in background job

0
Rails
I have a function in my app that emails out a PDF of any invoice as an attachment. Everything works fine if its run in production on the web worker. Of course this bogs the app down and I want to...
Criss Frost posted

Bootstrap v5 tooltip and popover not working (where to put the scripts?)

0
Rails
Hey everyone, I'm using a Railsbytes script to install bootstrap 5 alpha; https://railsbytes.com/public/templates/VB0s5v. However, I can't get any of the tooltips and popovers to work. Not sure ...
Jacob Hedengren posted

Is there a way to detect users leaving a page and alerting them

0
Rails
Is there a way to detect users leaving a page and alerting them in rails or would it be better to use jquery? Thank you!
JP posted

ArgumentError: Malformed version number string Yarn v0.1.1 2011 Jesper Kjeldgaard

2
Ruby
I have webpacker gem and yarn gem.. and I'm stuck with this error: (help please :))# console $ bin/rails webpacker:install rails aborted! ArgumentError: Malformed version number string Yarn v0.1.1 ...
huzefa-amura replied

Webpack-cli package 3.3.12 -> 4.1.0 upgrade breaking Webpack

0
General
Running into an issue with package upgrade with Webpack-cli from 3.3.12 to 4.1.0 This breaks my local environment for running the `web-development-server` command. Lots of info here: https://gith...
Tony Dehnke posted

What are the best ways to visualize data in a Rails application?

1
Rails
I am looking for the best way to build a clean, simple, & reactive interface to visualize data in a postgres database. Do you have any recommendations on tutorials/gems that I can follow or loo...
Mads Obel replied

Scheduled Notifications (recurring email at time of choice, in time zone)

0
Rails
I'm wondering about the best way to approach scheduled notifications. Having users who set their timezone and pick the best time to receive a regular notification (can be daily or less often), I c...
Arnaud posted

How can i do this?

0
Rails
How do i reduce video size while uploading using active storage Rails 5.2.4.3
Asher Namanya posted

Activity Feed From Scratch Discussion

17
General
Could you post the source code to this?
Chris Oliver replied

Duration of a video in the listing page

5
Site Feedback
Duration of a video in the listing page would be highly useful to select a video to watch.
JP replied

Best Approach for Updating Attributes On Join Table

2
Rails
I have a view (show) that display's an Article. The Article has several Author[s]. The Article and Author models look like this: Associations: ``` Article Model has_many author_articles has_many a...
Mountaindog replied

Rails6 - how to make jquery available in chrome console?

1
Rails
I'm new to rails 6, webpack, etc It's working for me in my app and jquery is loaded (thanks for the intro @Chris) However - although jquery works correctly in all my loaded js, I can't use it to e...
Chris Oliver replied

Editable emails templates

5
Rails
Hi there šŸ‘‹ I need users to be able to edit email templates, something like: `Hello {{ first_name }},` Please advice, thanks šŸ‘
Henk Jan replied

Invite using phone number instead of email

0
Rails
I am using devise gem for authenticating users. I modified it a bit to let users signup using a mobile number instead of email id. Which now works as expected. What I want to do next is inviting us...
kshitijLohbare posted

How do I get the value of an attribute in a model method before submitting

0
Rails
Let's say I have an attribute :year_of_birth for example and another field :age (readonly), I fill in the year_of_birth. And I make a method in a model to calculate the age, how does the age get po...
Samantha O posted

Learning Ruby on Rails? Join our newsletter.

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