Skip to main content

All Javascript Episodes

23:39
Dynamic Nested Forms with Stimulus JS
#283 · Pro

Don't like Cocoon or it's jQuery dependency? We can use Stimulus JS and build dynamic nested forms in Rails with accepts_nested_attributes_for from scratch pretty easily!

11:01
Autosave Draft Records - Part 2
#282 · Pro

Creating draft records in your database can be tricky. We'll be using the Draftsman gem to help us create draft versions of our records with our autosave Javascript

17:20
Autosave Draft Records - Part 1
#281 · Pro

Autosaving draft records allows you to make sure users don't lose their work and can easily write draft content without publishing right away. We'll be using Stimulus to build an autosave controller for our form and Draftsman to power the backend.

14:06
Webpacker Javascript Embed Code Snippet & Scoped Styles
#277 · Pro

We can use webpacker to create scoped styles for our Javascript widget and build an embed code that links to the latest version of our webpacker JS and CSS for our embeddable widget.

21:13
Restricting Javascript Widgets to Registered Sites
#276 · Pro

We don't want anyone to be able to embed your Javascript widget on any domain, so we'll setup our app to check the domain and only allow the widget on specific sites

10:44
Cross-origin Resource Sharing (CORS) with Rails
#275 · Pro

Cross-origin Resource Sharing (CORS) allows your website to talk to other websites.

19:29
Using Vuex with Forms in Rails
#274 · Pro

Embeddable Javascript Widgets often contain forms. We're using Vuex to build our comment form widget and we're going to use vue-map-fields to make this easier.

15:00
Using Vuex with a Rails Backend
#273 · Pro

The next step in our embeddable javascript widget series is setting up our Vue frontend to talk with our Rails backend using Vuex

20:57
Embeddable Javascript Comments Widget Models - Part 1
#271 · Pro

Starting our Embeddable JS Widget series outlining the comment and discussion models and the basic webpacker setup

20:07
Auto-detect User Time Zones in Rails
#260 · Pro

Use the jstz Javascript timezone library to help auto-detect and set the user's time zone in your Rails apps

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.