Skip to main content
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 integrate Uppy.io or Dropzone.js into Rails with ActiveStorage?
Gems / Libraries Solved • Asked by Ivan Raszl
[Uppy](https://uppy.io/) and [Dropzone](https://www.dropzonejs.com/) and popular js libraries that provide rich user experience for file uploads. ActiveStorage supports the integration of such libr...
3
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

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

How should I deal with lots of images?
Rails Solved • Asked by William Jones
I have a Rails app that lets users select an invoice from a list of invoices. When selected a view of the image of the invoice is displayed with an image of the customer signature overlayed on top....
5
posts

ActiveRecord/Routing madness
Rails Solved • Asked by Nelson Casanova
I'm not sure whats happening here, I feel like I've done this successfully in the past but for some reason my app is crashing all over. This is quite simple. Ive got a model `Employees` and it h...
2
posts

Commontator with Trix
Gems / Libraries Solved • Asked by Nelson Casanova
Good day robots, I'm trying to implement the Trix editor as the default editor for Commontator's comments. The default Commontator view is defined as follows in `app\views\commontator\comment...
2
posts

[Administrate] Autocomplete on 'foo: Field::BelongsTo'
Gems / Libraries Solved • Asked by Nelson Casanova
Hello, I'm currently doing some tests using Administrate to see if the functionality can be shaped in a way that is convenient for me... Some things have been quite easy and for the most part sa...
3
posts

"You must use Bundler 2 or greater..." Error
Rails Solved • Asked by Nelson Casanova
rails -v `Rails 5.2.3` ruby -v `ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]` bundler -v `Bundler version 2.0.1` On creating a new app and trying `rake db:create` i get: `You mu...
2
posts

New Project Rails 6 rc1 or 5.2.3?
General Solved • Asked by Chris Bishop
I am starting a new project soon (not a toy project) and wanted advice as to what version to start it in for Rails? Knowing i will do my best to keep it up to date with versions, should i start the...
5
posts

Display Posts on Homepage
Rails Solved • Asked by MikeLangford
I am building a social app and I want to display the content of the /posts page (index.html.erb) on the homepage if a user is logged in. The code below works just fine on the /posts page to dis...
3
posts

Access the request object in a helper in a helper test (minitest)
Testing Solved • Asked by Wout
Using Rails 6 and minitest, I am testing a helper method which generates a JWT token to make a request to an external service. Inside the JWT's payload hash, I need the pass the source url. Ideally...
3
posts

To use Rails 6 or Not
General Solved • Asked by Rob Thomas
Hey Go Rails Fam, I'm starting a new project this weekend and I was wondering should I user Rails 5.2.3 or just start the project with Rails 6.0.0.rc1? Let me know what you think. Cheers Rob
3
posts

Anyone had luck with Active Storage and Cloud Front?
General Solved • Asked by Dalton Cole
Hey everyone, I am working on an on demand video site that would (ideally) involve a user uploading a video via rails active storage direct upload to s3, then that video being served up via clo...
3
posts

How do I render a (Stimulus) modal without user interaction?
Javascript Solved • Asked by Jeff Helman
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 obviou...
3
posts

Contribute to a gem
Ruby Solved • Asked by S C
I have two questions. How do I contribute to a ruby gem? Do I just locate it's repo and make a pull request? Or are there more formal procedures? Also, what if I've made some very useful met...
5
posts

What is a elegant way for embedding vue component into rails view template
Ruby Solved • Asked by Aleksandar
Hi, I'm doing this way like as follow in the "***.html.erb" ``` ``` here I'm wondering if I should not vue component tag into the rails template or should I do this way? ``` ...
1
post

Active Query: object date within the next 30 days.
Rails Solved • Asked by Matt
Hi there, I'm fairly new to programming and rails. I was wondering if someone could help point me in the right direction here. I've created a new date field in Active Record and I'm trying to...
5
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.