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.
A few of the Open Source projects we do at GoRails.
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.
In this lesson, we'll create a job to download a video, extract the audio with ffmpeg, transcribe the video with Whisper, and upload the captions to our hosting provider.
Whisper.cpp is an open source C/C++ port of OpenAI Whisper that we can use with Ruby for transcribing our videos. We'll also look at how ActiveStorage runs executables like ffmpeg to see how it works behind the scenes just like with what we're building.
Now that we can sync videos to our local database, we need to run this on a regular schedule. We'll use SolidQueue's recurring tasks feature to create cron jobs that run periodically for syncing.
Next, we need to sync videos using our API client which we'll do with a higher level abstraction to integrate with the API.
Next up, we need to sync videos from our hosting provider's API so we'll build an API client from scratch using net/http in Ruby
To start off our automated transcription series, we'll start by creating our database model for
ActiveRecord Aggregations let you use composed_of to combine columns into a single attribute using a Ruby object.
Generators in Rails are in namespaces which allows us to create local generators that use the same name as others. We can use this technique to enhance the Rails scaffold generator by calling it with `hook_for`
Wrapping up our Web Scraper, we debug an issue in production with SolidQueue and some challenges for you to add more features to the web scraper.
Now that our application is deployed to production, we can use a service like Postmark to send real emails.
The next step is deploying our web scraper to production and setting up our cron jobs. We'll deploy our Rails app to a server using Hatchbox.io and configure cron jobs to run our scraping tasks on an interval.
When a web page is scraped successfully, we need a way to notify the user. For example, when the Raspberry Pi 5 is finally in stock, we want to know right away with an email.
TailwindCSS is an excellent CSS framework for letting us quickly iterate on design ideas to make our UI much cleaner and easier to use.
Building the controllers and actions for our Web Scrapper application lets us interact with Rails to add and remove Pages and view the results as they're generated.
We need to keep track of the web pages we want to monitor and scrape data from, so let's create our ActiveRecord model for storing this information and a Result model for storing the result each time we scrape a web page.
Kicking off our Web Scraper series, we start out with the bread and butter: scraping web pages with Ruby and Nokogiri.
Rails associations provide an object that quacks like an ActiveRecord but is actually a CollectionProxy. We can extend the proxy object with our own functionality to add useful features with Ruby Modules.
In this lesson, we will learn how to communicate features that will be removed in the future by using a built in feature of Rails specifically ActiveSupport::Deprecation.
Using some Ruby metaprogramming and class_eval, we can build Notifiers that allow us to dynamically define STI models and inject code into them with our notification system.
Catching signals from the operating system like Ctrl-C can be very useful for safely shutting down your Ruby process. In this lesson, we'll see how the Rails server catches Ctrl-C and gracefully shuts down.
Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.
We care about the protection of your data. Read our Privacy Policy.