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

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` ...
5
posts

How to fix params require for form_for contact in multi controller view
Rails Solved • Asked by Anthony BESSON
I have a problem in my contact form_for, I have one contact form and I want to render my contact form in my product view. If I make that I have a problem with my require params My contact_params...
2
posts

Why isn't the Boostrap Dropdown not working in the menu after loging in ?
Javascript Solved • Asked by Damian Nelwep
Hello, I started an app using the Jumpstart shortcut but didn't find out how and why the dropdown menu with the user's photo wasn't working at all... I guess it is because of javascript but after c...
16
posts

Have Stripe public key show up
Rails Solved • Asked by Martin Curiel
Hi Chris, I went through the master class for Stripe and your DigitalOcean tutorial. Attempting to combine my knowledge. I was able to deploy the app: http://165.22.132.173/pricing As you ...
4
posts

jquery doesn't work in js.erb file
Rails Solved • Asked by Christopher
Hey I'm working on an rails 6 application and try to render an partial in an js.erb file but get this error in the chrome console: > Uncaught TypeError: Cannot read property 'append' of null ...
2
posts

Does anyone have tips on setting up redis and sidekiq on a Digital Ocean ubuntu 16.04 droplet?
Rails Solved • Asked by Lance Williams
I have no trouble setting up redis but for some reason I can't get sidekiq to work. I can get sidekiq and redis to work locally on a mac using brew but not on a Digital Ocean Ubuntu 16.04 server. ...
7
posts

How do I change timezone in Ahoy analitics gem ?
Rails Solved • Asked by Hemadou Ramzi
I search a lot but no result
2
posts

How do I use easyautocomplete in rails 6?
Rails Solved • Asked by Christopher
I tried adding it with yarn and through rails assets but nothings seems to work.
7
posts

Refactoring controllers to keep them RESTful
Rails Solved • Asked by Nino Rosella
Hi gang I have a feature where a user can query the Google Books API with an ISBN number and get the book as a response. I have this all working nicely, but I'd like to refactor my `Books` contr...
4
posts

Dynamic nested forms with Stimulus *and* has_many :through relationship
General Solved • Asked by Nino Rosella
Hi team, I've been following along with the [Dynamic Nested Forms with Stimulus JS](https://gorails.com/episodes/dynamic-nested-forms-with-stimulus-js?autoplay=1) lesson, but I've been attemptin...
4
posts

How can I improve query time in SQL ? (PostgreSQL)
Databases Solved • Asked by Boris Bresciani
Hi, I have 4 models: ``` class Match < ApplicationRecord belongs_to :tournament scope :next, -> { where('date > ?', Time.zone.now) } end ``` ``` class Tournament < Ap...
2
posts

denial of service attack
General Solved • Asked by satish
What should we do to overcome Denial of service attack?
2
posts

How do I find a records based on contents of a has_many :through join?
Rails Solved • Asked by Peter Marcano
I think I've been at this problem for too long and the obvious answer has evaded me. Say you have students, classes (klass for ruby's sake), and enrollements as the join between them. ```ruby...
9
posts

Request for code review
Rails Solved • Asked by Alexey
Hello. Can I ask for a little review of my code? I have been a php-developer for a long time. I really want to learn professional programming on rubi / ruby on rails. This is my [class](https://...
2
posts

Best way to start a rails project?
General Solved • Asked by kriera
Hi i've been coding with rails selflearning with videos books and so on, (prolly not the best way to do it) but i'm wondering if there are few best practices to follow up. For instance, when i d...
6
posts

running new app showing error.
Rails Solved • Asked by SMEHSAN
Hello, i am using rails 5.2. when ever i create a new app and run server, it is showing the following errors. ``` Puma caught this error: Error loading the 'sqlite3' Active Record adapter. Mi...
3
posts

Nested Forms Tutorial: How do you display the Tasks in the Project Index and Show Views?
Rails Solved • Asked by Ryan Kulp
I am trying to display the Tasks on the Products#index and get Type Error in Projects#index "can't cast Enumerator" How can I display attributes from tasks on the Products views? Here's m...
5
posts

how can i add username in devise.
Rails Solved • Asked by SMEHSAN
Hello, I want to add username in devise. so that user can login with username and password. I have already added devise in my app. and can login with email and password. How can i do that? ...
3
posts

Subscribe to the newsletter

Join 20,000+ 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.