how to build a complete, real-world application from scratch with Ruby on Rails step by step.
A lot of Ruby code is "magic". We'll explain the magic and see how it works using the powerful tools Ruby gives us.
Accept subscription and one-time payments with Stripe in your Rails apps
Expert advice on keeping Rails apps organized and fast.
Cheap, easy hosting for Ruby and Rails apps.
Launch your product business way faster with our SaaS template.
A weekly podcast on web development and building products with Ruby, Rails, Javascript, and more.
Build a Ruby on Rails app in 48 hours with us.
Help Junior developers get hired by sharing small projects to build their resume with paid work.
Find your next Ruby on Rails Job.
We now want to create new Blog Posts in our Rails app, not directly in the database. To do this, we're going to start by building a new action and form for inputting data for our Rails model.
In this episode, we will look at how to refactor an existing dynamic nested attributes form that uses Stimulus to instead leverage the ability to now make GET requests with Turbo.
Using Signed GlobalIDs, we can create polymorphic select boxes in Rails to easily choose a record of any type. This is also secured by using signed global IDs to prevent tampering by malicious users.
Hotwire allows us to add inline editing easily in Rails forms using Turbo Frames. Learn how to implement them in a reusable manner so you can inline edit any fields across any model.
Need to dynamically update fields when a user changes a select box? We can do that easily in Rails using Hotwire's Turbo Stream actions.
Modal forms are common, but how do we do them with Hotwire to render validation errors and redirect on success?
Flash messages are typically a simple string saying something succeeded or failed. What if we wanted to add buttons like you see in most applications? It's easier than you might think!
It's a common situation that we need to submit complex data in our forms in our Rails apps. We'll explore how can we transform the simple values browser forms allow and convert them into something Rails can use and transform into Ruby objects.
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!
Learn how to use VueJS as an alternative to Cocoon and other methods of building dynamic nested forms with Rails
Learn how to setup forms to work with Turbolinks iOS and Android adapters
Learn how to create forms with multiple submit buttons
Learn how to use accepts_nested_attributes_for and fields_for to create forms that include associated models in them
Join 78,890+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our Privacy Policy.
Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.
© 2023 GoRails, LLC. All rights reserved.