Skip to main content
How do I ajax query (select) on a huge number of records (zipcodes)?
Javascript Solved • Asked by Brandon Buteaux

How do I charge a user to create a post using Stripe?
Rails Solved • Asked by Taylor Cooney
It's been surprisingly difficult to find more information on creating one-off, or single charges for a user.Currently I am making a job board where anyone can browse listings, and a user (Devise) h...

How do I put a live time(seconds) counter on a page?
Javascript Solved • Asked by Arjun Rajkumar
As in it should go 00:00 .. 00:05.. 00.49 ..15:55 to whatever. Wondering how to do this on the front-end.Should I just use jquery? Or something else? Any suggestions?ThanksArjun

How do I create a duplicate with associations included?
Rails Solved • Asked by shesso
I'm fairly new to Rails and still learning. I recently stumbled upon a problem that I'm sure there is an easy way to fix it, but I haven't figured it out yet. In the application I'm trying to creat...

How do I import a Sass library from within a "node_module" (Rails 5.1)?
Rails Solved • Asked by Peter Marcano
Pretty much the question above! I have a Rails 5.1 app with webpacker installed, and I used npm to install a front end framework: `npm install bulma --save` Now that it is inside of `node_...

Webpacker error from Vue.js Trello Clone Series
Rails Solved • Asked by Victor Bordo
Hey all, I have an error that I just can't get to the bottom of. While going through the awesome Vue.js Trello Clone tutorial I started seeing this:(Webpacker can't find application.css in /trello-...

How do I install Google tag manager in a rails 5 app?!
General Solved • Asked by Muhammad
Hi guys, I'm having a hard time trying to know how to install GTM in my new rails app. I searched for some time but found nothing to guide me through it!

Conflict between Chartkick gem and Trix Editor
Javascript Solved • Asked by Trevor Owens
I'm getting an error on pages that use chartkick (both highcharts and chart.js) due to the Trix Editor. Everything works fine but the error being thrown concerns me.Anyone have thoughts?Error with ...

New server failed provisioning
Servers Solved • Asked by Felender Hlungwani
Hi Chris, please assist with the following error;Your server failed provisioning!Server logsRegion is not available Make sure you haven't crossed your Droplet limit on Digital Ocean already!

How do I access files on server with a cron or similar ? (outside of app)
Rails Solved • Asked by LinaeAzn
Hi everyone, i'm a bit new to rails and i'm searching for help.I have a rails app where I receive a zipfile on my server (outside of the app, homedir of new FTP user).Then I want to unzip the files...

'bcrypt' gem install Error
Rails Solved • Asked by Jayden Bamberger
So, I was attempting to install the gem 'bcrypt' and I received the following error:Installing bcrypt 3.1.11 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extensio...

Using Webpacker and Rails on AWS Elastic Beanstalk
General Solved • Asked by Simon Cooper
Can anyone point me in the direction of documentation/tutorial for using Webpacker with Rails on Elastic Beanstalk? I have been playing with Tailwind CSS (which is great btw), and I'm getting a ver...

How to generate these episodes applications Scaffold used by Chris?
Rails Solved • Asked by Alisson Patrick
I would like to know if there is any guide that shows how to generate this initial Scaffold of the application (with device, gravatar, bootstrap, all configured to start a new project quickly), lik...

Best way to create a belongs_to object from a has_many
General Solved • Asked by Morgan
Sorry for the vague title but I cant think of a better explanation! Let's say I have a list of Users and an admin could click a button/link that would create a site for them from the existing user'...

Condition if devise action view
Gems / Libraries Solved • Asked by Jacob Hedengren
Hi everyone,I am struggeling with finding out how to add a condition to hide my navbar partial if user is currently in one of the devise views. For example if user is currently in devise sessions n...

How do I do upserts and/or conditional saves?
Ruby Solved • Asked by Morgan
I have an external API that I am parsing and saving to the database via a scheduled job and I am having trouble working out how to:A: How to only save the parsed object if it has changed.B. How to ...

Gravatar redirecting subdomains to https
Servers Solved • Asked by Masud Hossain
I tried out's SSL encrypt for a new domain. And it's rerouting my `` to the ``. Any way I can keep it from redirecting it to the...

Rails bootsnap-compile-cache and other files all of a sudden appears
Rails Solved • Asked by Jacob Hedengren
Hi everyone,I am a bit confused; whether I am using Rails 5.1.4 or upgrading to 5.2.0.rc1 (Ruby version is 2.5.0) a lot of new files have all of a sudden appeared in my apps and I am unsure of the ...

Why CKeditor is not working in production?!
Rails Solved • Asked by Muhammad
Hi guys, I'm using CK editor in my rails 5 app and when I deoployed it on Digital Ocean and the editor doesn't load with this error in the console. ``` ReferenceError: CKEDITOR is not defined `...

Setup for roles and authorization
Gems / Libraries Solved • Asked by Nick van der Wildt
Hi all! This is my first question for the community. I'm super excited to be here and hope to be answering a few of them myself as well. I'm working on a rails project where people can work o...