Skip to main content
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

Install Bootstrap with Webpack with Rails 6 Beta
Javascript Solved • Asked by Shawn Wilson
For those of you who are going to give Rails 6 Beta a test run here is how I have installed Bootstrap 4.3.1 and configured with Webpack **Step 1:** `yarn add [email protected] jquery popper.js` ...
7
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

creating multiple input fields in rails
Rails Solved • Asked by lucywilson
1
post

How I can use extra params in habtm without so many troubles?
Rails Solved • Asked by Jack
I have a model `Station` ``` class Station < ApplicationRecord validates :name, presence: true has_many :ways has_many :routes, through: :ways has_and_belongs_to_many :tickets ...
2
posts

How do I structure a Conversation between two models?
Rails Solved • Asked by Taylor Cooney
I have a `Store` object that has an `email_address` attribute. Using the logic from and [How To Build A Form](https://gorails.com/series/how-to-build-a-forum) and [Handling Inbound Email Parsing wi...
7
posts

Rails Webpack caching
Javascript Solved • Asked by Stephen Sizer
I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have...
3
posts

Subscribe to the newsletter

Join 22,346+ 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.