How do I put a live time(seconds) counter on a page?

1
Javascript
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
William Kennedy replied
Solved

How do I send send a erb template as a string in a json response?

1
Rails
I have a page editor that shows the user a live preview of their changes as they make them, but I’m having trouble working out how to do this with erb templates.In my previous non rails version, I ...
Jacob Montgomery replied
Solved

Webpacker error from Vue.js Trello Clone Series

4
Rails
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-...
Matthias Orgler replied
Solved

Conflict between Chartkick gem and Trix Editor

1
Javascript
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 ...
Trevor Owens replied
Solved

New server failed provisioning

2
Servers
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!
Chris Oliver replied
Solved

'bcrypt' gem install Error

3
Rails
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 extension...
William Kennedy replied
Solved

Condition if devise action view

3
Gems / Libraries
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...
Jacob Hedengren replied
Solved

How to generate these episodes applications Scaffold used by Chris?

3
Rails
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...
Alisson Patrick replied
Solved

How do I do upserts and/or conditional saves?

3
Ruby
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 ...
Jacob Montgomery replied
Solved

Using Webpacker and Rails on AWS Elastic Beanstalk

10
General
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...
Simon Cooper replied
Solved

How do I access files on server with a cron or similar ? (outside of app)

17
Rails
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...
Jacob Montgomery replied
Solved

Rails bootsnap-compile-cache and other files all of a sudden appears

2
Rails
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 ...
Jacob Hedengren replied
Solved

Check if class was instantiated and instance method was called

1
Testing
Hey guys! I'd like to figure out a way to test piece of code that suppose to create an instance of particular class. Here is an example: ``` ruby class Subject def call ... end end class ...
Alex Musayev replied
Solved

Setup for roles and authorization

7
Gems / Libraries
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 on a ...
Jacob Montgomery replied
Solved

Implementing global app settings

3
Rails
I am wondering what the best way to go about setting up Settings for an application. Settings will consist of name, address, phone number, and some other project specific entries. What has me a lit...
RJ McCollam replied
Solved

Why CKeditor is not working in production?!

2
Rails
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 ``` ...
Muhammad replied
Solved

Hatch login Error

1
General
Hi Chris, I incorrectly set up Two-factor Authentication (enabled) on my Hatch Box Account , now I cant login. Please Assist
Chris Oliver replied
Solved

How can I setup Vim for rails development on Ubuntu?!

5
General
Hey guys, Lately I have been trying to switch to Vim but I couldn't because It's kinda complicated. Most of the dotfiles I found were built to setup on a Mac so I'm curious if anyone here is workin...
Chris Oliver replied
Solved

Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30

3
General
I've got into bit of a mess. Posted this over on SO too, but no answers of use over there. I've added Webpacked so I can install React.js. However, I think I've somehow buggered up my PATH and ba...
Simon Cooper replied
Solved

Okay I subscribed to learn Rails.. but where do I start?

4
General
Okay, I might be coming off like a total noob (and I am one by all means when it comes to Rails) but I really need some clarity on how to get strated with learning Rails from the Episodes available...
Chris Oliver replied
Solved

Want to stay up-to-date with Ruby on Rails?

Join 89,237+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.