This code verifies that the user is authenticated and authorized to place orders. It will also validate the request data, store the order in the database, dispatch jobs for background processing. With Hotwire, we get real time updates on the frontend without any additional work.

class OrdersController < ApplicationController
  before_action :authenticate_user!

  def create
    order = current_user.orders.new(order_params)
    if order.save
      render :new


  def order_params
      products: [:id, :quantity]

Some of the companies that are using Ruby


Developer focused 

Elegant, flexible and fast

Ruby is a great language for those who value simplicity, readability, and elegance in their code. Its dynamic nature, powerful abstractions, and supportive community make it an attractive choice for many developers.

Elegant and clean syntax

Ruby's syntax is designed to be easy to read and write. Its simplicity allows developers to express their intent with fewer lines of code, making it easier for others to understand and maintain the code.

Dynamic and flexible

Ruby is a dynamic language, which means that you can change parts of the language at runtime, such as adding or modifying methods on existing objects. This flexibility enables developers to create powerful abstractions and frameworks.

High-level abstractions

Ruby provides high-level abstractions that make it easy to create complex applications with minimal code. For example, it offers powerful metaprogramming features, which enable you to write code that generates other code.

Strong community

Ruby has a vibrant and supportive community, with a vast ecosystem of tools. Ruby on Rails, one of the most popular web development frameworks, has played a significant role in Ruby's popularity, making it easy to build web applications quickly and efficiently.

Developer happiness

Ruby was designed with clean syntax, make coding enjoyable and lead to better code quality. Happy developers are productive, improving both the final product and team morale. Prioritizing happiness fosters creativity and collaboration in development environments.

Rapid prototyping

Due to its simplicity, flexibility, and rich ecosystem, Ruby is an excellent choice for quickly developing prototypes and proofs of concept.

Everything you need

Deploying made easy

MRSK uses the dynamic reverse-proxy Traefik to hold requests, while the new app container is started and the old one is stopped — working seamlessly across multiple hosts, using SSHKit to execute commands. Originally built for Rails apps, MRSK will work with any type of web app that can be containerized with Docker.

Checkout MRSK
Your own servers
Bring your own hardware! Provisioning, maintenance and deployment management has never been easier!
Cloud Services
MRSK works with any cloud service that grants you SSH access to install Docker and your application's containers.
No Vendor Lockin
Unlike many solutions out there, MRSK doesn't lock you into a single vendor. You can use any registry for your container images and deploy to virtually any Linux host.
And more!
From bare metal to cloud VMs using Docker,
deploy web apps anywhere with zero downtime.


Hotwire is an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire. Develop faster without the complexities of a Front End library like Angular, Vue or React!

Checkout Hotwire

The heart of Hotwire is Turbo. A set of complementary techniques for speeding up page changes and form submissions, dividing complex pages into components, and stream partial page updates over WebSocket. All without writing any JavaScript at all. And designed from the start to integrate perfectly with native hybrid applications for iOS and Android.

While Turbo usually takes care of at least 80% of the interactivity that traditionally would have required JavaScript, there are still cases where a dash of custom code is required. Stimulus makes this easy with a HTML-centric approach to state and wiring.


Ruby on Rails Screencasts
by Drifting Ruby

Elevate your Ruby skills with expert-led videos. Drifting Ruby is a web-based platform that offers screencasts and tutorials on Ruby on Rails, a popular web application framework written in the Ruby programming language. Drifting Ruby covers a wide range of topics related to Ruby on Rails development, including beginner and advanced concepts, best practices, and real-world examples.

The platform is typically aimed at developers who are already familiar with Ruby or other programming languages and want to learn more about building web applications using Ruby on Rails. The content on Drifting Ruby is usually presented in the form of video screencasts, articles, and other resources that help developers improve their skills and knowledge in the Ruby on Rails ecosystem.

Hours of Quality Content
> 400

Wonderful Community

We are 19,756 Ruby on Rails developers from all over the world,including avid OSS contributors, full-stack engineers, startup founders, backend engineers, and people just learning Ruby on Rails.

Active Users