Ever wondered what the difference between Symbols and Strings were? Why would we use one over the other when most languages only have strings?
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!
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
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.
Linux server administration can be a pain. You can use cockpit to monitor your servers and keep an eye on long running processes like Sidekiq and Puma without having to SSH into your servers.
Security in production is important. We can use Fail2ban and NGINX to block malicious users from accessing our server and apps.
Learn how to enable the experimental new Just-in-time compiler for Ruby 2.6
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.
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
Cross-origin Resource Sharing (CORS) allows your website to talk to other websites.
Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.