DEV Community

Saman Mahmood
Saman Mahmood

Posted on

Ruby on rails

Here's a simple example of using Ruby on Rails in just a few lines:

# Gemfile
source 'https://rubygems.org'
gem 'rails', '6.1.4'

# Terminal
bundle install
rails new MyApp
cd MyApp
rails generate scaffold Post title:string content:text
rails db:migrate
rails server
Enter fullscreen mode Exit fullscreen mode

These commands set up a basic Ruby on Rails application, create a Post model with a title and content, and start a local server. Remember, this is a minimal example, and a real application would require more configuration and code.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay