Uppy Video

2
Rails
I've followed your tutorial and haven't been able to get uppy pop up to open upon click of "upload". Any ideas as to why?

First open source contribution to turbo-rails

4
Rails
Hello- I'd like to take a crack at fixing https://github.com/hotwired/turbo-rails/issues/341 for turbo-rails. I'm having a little trouble navigating my local setup to verify the change is working ...
computer_smile replied
Solved

Architecture Question - Connecting google books API and voting on favorite book

4
Rails
Hey guys, I am using the Google books API to pull books and show them on my site. This is working great. However, I want to be able to allow users to favorite books they want to remember and als...

Connect two rails apps with live updates hotwire, redis?

0
Rails
Hello. I am going to create a big project. Using GCP and Rails I'm willing to create management system for a company. Investigating I've managed to solve some problems that I figured out while cre...

How do I resolve Rails 5.2.4.2 routing error: No route matches [GET] "/pages_about_path"?

4
Rails
I am running into a routing error for a get action when I try to render an html erb view from the '../views/pages' folder via a navbar link. I have reviewed the routes.rb file and the output from ...
Solved

uninitialized constant ActiveStorage::AttachmentDashboard administrate gem

1
Rails
I added the administrate gem to a project I'm working on but I get this error: uninitialized constant ActiveStorage::AttachmentDashboard. I then tried to add the gem from dreamersoul (https://githu...
Konstantin Filtschew replied

Enable turbo_frame: modal tag conditionally

0
Rails
I have a link for creating a new item <%= link_to "List an item", new_item_path, data: { turbo_frame: 'modal' } %> This opens a item form in a turbo_frame_tag modal <%= turbo_f...
Ahmed Nadar posted

How do I make a image gallery/modal for my real estate listing app?

1
Rails
Hey, I am trying to make a rails app for real estate listing, however, I am stuck in the images section. The users on the website can upload images on the website along with the properties which I...

Generate ActiveStorage image variants after upload

1
Rails
I have a model that has a photo attached and this photo has few variants. I would like to display many of these photos as a gallery and i am using one of the variants as a thumbnail and another one...
Alex F replied

Rails 7 with esbuild application production deploy failed

5
Rails
Hello there, I'm using Capistrano for production deployment, getting below error when I try to deploy my rails 7 application to DigitalOcean server. ``` 00:43 deploy:assets:precompile 01 $H...
Viktor Smári replied

How to solve a status 308 with Action Mailbox?

1
Rails
Hi ! I am trying to send email from my Gmail accounts to my Rails application using Action Mailbox. To configure it, I've followed this tutorial https://gorails.com/episodes/action-mailbox-rails-...
Helena replied
Solved

Devise and Hotwire

1
Rails
Hi guys, I'm getting an error with devise and hotwired/turbo. This is only when I use the current_user helper in any of the partials that receives any broadcast, the error is the following: ``` De...
Jeppe replied

Share resources among controllers?

3
Rails
Hi, I’m not even sure I’m using the correct terminology here (sharing resources among controllers) but here goes. Imagine I have a page called students with the usual CRUD functionality and anothe...
Solved

Rails Association Question

1
Rails
Hello I have an app where I have a list of Cars. I have a form above that can filter them based on different attributes. I wish to add filtering based on their model and sub-models. Each car alre...
Chim Kan replied

Hotwire Not Working Inside of Namespace

0
Rails
This seems like an easy fix, but I am not sure why its not working. I have an admin dashboard using Hotwire, but I can't seem to create records for my gym model (There are no errors, and it will wo...
Brian Gilbank posted

How do I use Rails.ajax() method

0
Rails
My web console is giving an error message that "Rails.ajax is not a function". I'm following the tutorial on Drag and Drop Sortable lists at https://gorails.com/episodes/rails-drag-and-drop-sortabl...
Owen Millward posted

How to implement signup page for devise for two types of users?

0
Rails
Hi there, I would like to implement STI for devise which will have two types of users. The first type of user is allowed to signup and I have called this as "PublicUser" and the second type of user...
Ponciano Vieira posted

How do I make Paper trail log onto a different database engine rather that the main database ?

0
Rails
I have a project that has an established database connection and I am trying to separate the versioning of paper_trail onto another database.
Abdelfattah Hezema posted

Finding records using Delegated Types

0
Rails
Hi, I have a Delegated Types association set up like below and I need to find a particular Collection but the flickr_id is stored in the GalleryItem table. It's failing to return anything. How...
Neil Tonge posted

Active Storage Rails 6 API unable to insert to active_storage_attachments table

1
Rails
I am creating API endpoint for active storage with reactjs. My upload controller is as follows: The code belows execute: insert blob object in active_storage_blob - ok Uploaded file to the design...
garxu21 replied

Want to stay up-to-date with Ruby on Rails?

Join 93,131+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.