aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
Ruby
  • Software Engineering

How To Get Started With A Ruby On Rails Project – A Developer’s Guide

  • Dean Marc
  • January 27, 2024
  • 3 minute read

In this guide you will be able to create a Ruby on Rails application for your development environment. These steps can also be used when deploying an application on a production environment for the setup of the required software. 

Installing the required software

Ubuntu

Execute the following steps and commands to install the required software. 


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

System update and required system libraries

sudo apt update
sudo apt upgrade -y

sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev

ASDF

Is a version management tool. Which can be used to manage softwares like Ruby and Node.

cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
echo 'export EDITOR="code --wait"' >> ~/.bashrc
exec $SHELL

Ruby

asdf plugin add ruby

asdf install ruby 3.3.0
asdf global ruby 3.3.0

# Update to the latest Rubygems version
gem update --system

Verify that ruby is installed by checking where it is located and the version installed. 

which ruby
#=> /home/username/.asdf/shims/ruby

ruby -v
#=> 3.3.0

NodeJS

asdf plugin add nodejs

asdf install nodejs 20.10.0
asdf global nodejs 20.10.0

# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn

Verify that Node has been installed by checking where it is located and the installed version.

which node
node -v

Rails

gem install rails -v 7.1.2

Check the version installed

rails -v

Mac

Open a terminal and run the following steps.

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

ASDF

Is a version management tool. Which can be used to manage software like Ruby and Node.

cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.zshrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.zshrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
exec $SHELL

Ruby 

asdf plugin add ruby

asdf install ruby 3.3.0
asdf global ruby 3.3.0

# Update to the latest Rubygems version
gem update --system

NodeJS

asdf plugin add nodejs

asdf install nodejs 20.10.0
asdf global nodejs 20.10.0

# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn

Verify that Node has been installed by checking where it is located and the installed version.

which node

node -v

Rails

gem install rails -v 7.1.2

Check the version installed

rails -v

Windows

To run the necessary software, they can be run by installing a Linux subsystem in the Windows environment.

Read More  Using A Subflow In Dialogflow CX

On a power shell run the following commands.

01: Create a new project using the rails command

wsl --install -d Ubuntu

02:  Reboot the computer after the installation.

03: Follow the instructions from the Ubuntu steps.

System update and required system libraries

sudo apt update

sudo apt upgrade -y

sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev

ASDF

Is a version management tool. Which can be used to manage softwares like Ruby and Node.

cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
echo 'export EDITOR="code --wait"' >> ~/.bashrc
exec $SHELL

Ruby 

Note: This process takes some time to be completed.

asdf plugin add ruby
asdf install ruby 3.3.0
asdf global ruby 3.3.0

# Update to the latest Rubygems version
gem update --system

Verify that ruby is installed by checking where it is located and the version installed. 

which ruby#=> /home/username/.asdf/shims/ruby
ruby -v#=> 3.3.0

NodeJS

asdf plugin add nodejs

asdf install nodejs 20.10.0
asdf global nodejs 20.10.0

# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn

Verify that Node has been installed by checking where it is located and the installed version.

which node

node -v

Rails

gem install rails -v 7.1.2

Check the version installed

rails -v

Starting a new project

01. Create a new project using the rails command

rails new my-rails-project

02. Navigate to the new project

cd my-rails-project

03. Create the database. Note that since we did not specify what database during the creation of the project, this defaults to SQLite.

rails db:create

04. Run the rails server

rails server

05. Open the following URL on a browser.

http://127.0.0.1:/3000

or via cURL inside a terminal

curl http://127.0.0.1:/3000
Ruby on Rails 7.1.3

For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

Dean Marc

Part of the more nomadic tribe of humanity, Dean believes a boat anchored ashore, while safe, is a tragedy, as this denies the boat its purpose. Dean normally works as a strategist, advisor, operator, mentor, coder, and janitor for several technology companies, open-source communities, and startups. Otherwise, he's on a hunt for some good bean or leaf to enjoy a good read on some newly (re)discovered city or walking roads less taken with his little one.

Related Topics
  • Programming
  • Ruby
  • Ruby on Rails
  • Tutorial
You May Also Like
View Post
  • Software Engineering
  • Technology

Claude 3.7 Sonnet and Claude Code

  • February 25, 2025
View Post
  • Engineering
  • Software Engineering

This Month in Julia World

  • January 17, 2025
View Post
  • Engineering
  • Software Engineering

Google Summer of Code 2025 is here!

  • January 17, 2025
View Post
  • Software Engineering

5 Books Every Beginner Programmer Should Read

  • July 25, 2024
View Post
  • Engineering
  • Software Engineering

5 Ways Platform Engineers Can Help Developers Create Winning APIs

  • January 25, 2024
Clouds
View Post
  • Cloud-Native
  • Platforms
  • Software Engineering

Microsoft Releases Azure Migrate Assessment Tool For .NET Application

  • January 14, 2024
View Post
  • Software Engineering
  • Technology

It’s Time For Developers And Enterprises To Build With Gemini Pro

  • December 21, 2023
Code | Software
View Post
  • Engineering
  • Software Engineering

Expanded Legal Protections And Improvements To Our API

  • December 19, 2023

Stay Connected!
LATEST
  • 1
    Pure Accelerate 2025: All the news and updates live from Las Vegas
    • June 18, 2025
  • 2
    ‘This was a very purposeful strategy’: Pure Storage unveils Enterprise Data Cloud in bid to unify data storage, management
    • June 18, 2025
  • What is cloud bursting?
    • June 18, 2025
  • 4
    There’s a ‘cloud reset’ underway, and VMware Cloud Foundation 9.0 is a chance for Broadcom to pounce on it
    • June 17, 2025
  • What is confidential computing?
    • June 17, 2025
  • Oracle adds xAI Grok models to OCI
    • June 17, 2025
  • Fine-tune your storage-as-a-service approach
    • June 16, 2025
  • 8
    Advanced audio dialog and generation with Gemini 2.5
    • June 15, 2025
  • 9
    A Father’s Day Gift for Every Pop and Papa
    • June 13, 2025
  • 10
    Global cloud spending might be booming, but AWS is trailing Microsoft and Google
    • June 13, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • Google Cloud, Cloudflare struck by widespread outages
    • June 12, 2025
  • What is PC as a service (PCaaS)?
    • June 12, 2025
  • 3
    Crayon targets mid-market gains with expanded Google Cloud partnership
    • June 10, 2025
  • By the numbers: Use AI to fill the IT skills gap
    • June 11, 2025
  • 5
    Apple services deliver powerful features and intelligent updates to users this autumn
    • June 11, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.