Skip to main content

Command Palette

Search for a command to run...

How to create a new Rails app running Rails 7.1 beta or main branch

Create a new app with latest Rails

Updated
โ€ข1 min read
How to create a new Rails app running Rails 7.1 beta or main branch

New app with Rails 7.1.beta1

Here is how to create a new Rails app that runs on Rails 7.1 beta1

gem install -v 7.1.0.beta1 rails

rails _7.1.0.beta1_ new myrails71app

Replace myrails71app with your own app name and you are good to go.

This will generate a Gemfile that has something like this inside and then install required gems for Rails 7.1.0.beta1

# Gemfile

gem "rails", "~> 7.1.0.beta1"

New app with Rails main branch

Here is how to create a new Rails app that runs on Rails main branch from GitHub:

rails new myrailsapp --main

This will generate a Gemfile that has something like this inside:

gem "rails", github: "rails/rails", branch: "main"

May you have a lot of ideas to try!


Enjoyed this article?

๐Ÿ‘‰ Join my Short Ruby News newsletter for weekly Ruby updates from the community and visit rubyandrails.info, a directory with learning content about Ruby.

๐Ÿ‘ Subscribe to my Ruby and Ruby on rails courses over email at learn.shortruby.com - effortless learning anytime, anywhere

๐Ÿค Let's connect on Ruby.social or Linkedin or Twitter where I post mainly about Ruby and Rails.

๐ŸŽฅ Follow me on my YouTube channel for short videos about Ruby

Learning Ruby and Rails

Part 3 of 7

My recommendations about how to approach the learning of Ruby and Rails. I will focus on Ruby and on Rails but from time to time will also write about other web frameworks.

Up next

Projects ideas for learning Ruby or any Ruby web framework

Projects to tackle as you learn a new programming language

More from this blog

All about code - Ruby and Rails technical content written by Lucian Ghinda

101 posts

I write here quick thoughts, ideas, tips, and learnings about programming, programmers, and building software. Most of my focus is on Ruby, Rails, Hotwire, and everything about web applications.