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.
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.
An index page allows us to display all the blog posts in our database. We will learn how to setup routes that point to controllers and actions that render HTML.
The first thing we need is a database table to store our blog posts. We create a Rails model (the M in MVC) to create the database and a Ruby class for us to interact with the database table.
Now that we've created a new Rails app, let's take a look at the files generated and learn what they do
We're going to build a Blog with Ruby on Rails so let's start by making sure we have everything installed and create our new Rails app
Object oriented programming and Ruby go hand in hand. This lesson, we'll learn how to define classes and create instances of them to organize our code.
Loops allow you to run code multiple times. This is handy when you need to process a group of items one at a time until the entire group is finished. We'll also learn about Ruby blocks to define the set of operations.
So far, our project has been a single line of operation. We can refactor this to use methods to reuse code in various ways.
A method or function is a way to define a group of code that can be used repeatedly. We'll learn how to define methods in our Ruby code and then use them multiple times.
Conditionals allow your code to take different paths. Learn how to use conditionals like if statements in your Ruby code
Learn how to use Hashes in your Ruby code
Learn how to use Arrays in your Ruby code
Learn how to use Integers and Floats in your Ruby code
Learn how Strings work in Ruby
Learn how to execute Ruby Scripts and interactively run Ruby code in IRB
Learn how to auto-submit forms when a user changes a value and use custom Turbo Stream Actions to update the page
In part one of this episode on leveraging ActiveSupport::Duration, we look at how to provide a solution to calculating and updating model attributes that represent lengths of time. We look at ActiveSupport::Duration and how we can write a custom coder cla
Rails ships with support for using Memcached as the cache storage. Memcached is an open source, key value store that is designed primarily for caching. Out of the box it is configured to automatically expire old cache keys and can easily be scaled up with
In this episode, we will look at an option for beginning to refactor your code architecture to use modules as a first step to potentially extracting a new class.
In this episode, we look at how to get started making utility programs with Ruby similar to the built in cat and grep programs.
Debugging Ruby with the Caller method
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
© 2023 GoRails, LLC. All rights reserved.