Skip to main content
Page blinking when using tailwindcss
CSS Solved • Asked by edouard
Hello guys, I am trying to use tailwindcss on a 5.2 ruby on rails application with webpack. Everything is set up and works well according to the video [How to use Tailwind CSS with Rails](https:...
2
posts

Do you measure your app's uptime?
General Solved • Asked by Peter Marcano
If so, than how do you measure it? Any libraries, tools, services, etc worth investigating?
3
posts

How to test attachments in ActionMailbox?
Rails Solved • Asked by Lidia Wisniewska
I'm trying to test attachments using receive_inbound_email_from_mail, but when inspecting mail.attachments I get an empty array. Is there another way around this? receive_inbound_email_from_mail(...
5
posts

Adding external .js files to a new Rails 6 web app
Rails Solved • Asked by Safwan SM
I have created a new rails 6 app. in rails 6, javascript folder is outside assets. I have copied all the css and js files from an existing application to this new one and application.css,applicatio...
2
posts

Working with Lists from a Database
Rails Solved • Asked by Brad Morrical
Greetings, I am learing Ruby on Rails as I'm migrating a legacy app from PHP. I'm just a beginner in ROR, and having trouble setting up the simplest of relationships. In simplest terms, I have ...
2
posts

How to create many subcategories in rails?
Rails Solved • Asked by Nicolás Bobb
Without using any gems how do I do this in rails? I see the gem Ancestry (https://github.com/stefankroes/ancestry) ``` Main Category Sub Category Sub Category Sub-sub Category Main Cate...
3
posts

How would one go about sorting ActiveStorage has_many_attached objects?
Rails Solved • Asked by Aaron Belsham
Hey there,Just wondering if anyone can shed some light here as the Google search is pretty thin right now for ActiveStorage.Is there a way to a a property (say sort_order) to each of the has_many_a...
6
posts

`Redirect from naked domain to www from inside the routes doesn't change the domain in the address bar - because of Turbolinks?
Rails Solved • Asked by Vito Botta
Hi, I am trying to force a redirect from naked domain to www from inside the Rails app, since I can't do this with the Nginx ingress in Kubernetes (basically, users can add custom domains and the a...
3
posts

How do I drag and drop an image file?
Rails Solved • Asked by William Jones
I have a rails application that can upload an image using CarrierWave and MiniMagick and a file_field. This seems to be the usual way to do things and works well. I have a user that wants to open...
4
posts

How do I display just the year in a sect date?
Rails Solved • Asked by Rob Thomas
Good day Rails Devs, What's the proper way to dsiplay just the year in: ``` ```
3
posts

How do I manage business hours for a store?
Databases Solved • Asked by Taylor Cooney
I've taken a few stabs at this over the past two months and haven't found a great solution for what seems to be a straightforward feature seen in applications such as SkipTheDishes and UberEats. ...
6
posts

How to model these relations in Rails
Rails Solved • Asked by Drazen Mokic
For a couple of days now i am going back and forth how to models this. I currently have the following model structure and relations (simplified) ``` class Fleet < ApplicationRecord # ...
7
posts

How to attach a remote S3 file to an outgoing email? [SOLVED]
Rails Solved • Asked by Daniel Weaver
I'm using a regular mailer to send text emails and now I want to attach a file stored on S3 to the email. I have the URL of the file and was naively hoping something like this would work: ``` d...
4
posts

JWT with Devise (App and API)
Rails Solved • Asked by Stephen Gold
Hi, I'm looking to extend my Rails 5.2 application that uses Devise for authentication so I can support API requests via JSON. I have looked at Chris' videos and did some searching around -- mos...
4
posts

Webpack assets doesn't work after deployment
General Solved • Asked by Juan S. Caro
Hi, I have been using happily rails until I decided to try stimulusJS. In the begining was great. I saw great value using it. The thing is the assets in the pack folder are not compiled when doing ...
17
posts

How do I remove Devise::Trackable from my app?
Gems / Libraries Solved • Asked by Daniel Weaver
I'd like to remove the Trackable module of Devise. Is it as simple as removing `:trackable` from the `devise` line in `User.rb` and then creating a migration to remove the columns created for th...
2
posts

How to do a incremental backup
Databases Solved • Asked by Nithil
Hey, taking a full backup every day will be huge, so thinking of doing a full backup once in a month & incremental backups every day or so. I would like to know the best solution to achieve this.
2
posts

How do I make an app to get a video by url from youtube download it / process it/ and uploaded to a local db?
Gems / Libraries Solved • Asked by emil mircea
I liked the shrine tutorials and would like to use that as an upload to local disk solution. I also found a gem called youtube-dl (https://github.com/layer8x/youtube-dl.rb) to help download from Y...
6
posts

Going crazy with console / debugging issue
General Solved • Asked by Dan Tappin
In development mode I want errors to hit the browser and specificly the 'better_errors' gem debuging pages. Currently when I hit an issue my console just hangs and reports the error and the brow...
3
posts

Bootstrap-Sass Not working Entirely
Rails Solved • Asked by Jeremy Hill
I can tell that bootstrap is working but my navbar is not styled at all. I've tried several things to no avail. Any help would be greatly appreciated. This would be a huge milestone for me if I cou...
2
posts

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.