How to Create a Ruby on Rails App

Photo by Austin Distel on Unsplash

Install a database

Create a new project

Author.create(name: "William Shakespeare", country: "England")
Author.create(name: "Eiichiro Oda", country: "Japan")
Author.create(name: "Leo Tolstoy", country: "Russia")
Author.create(name: "Karl May", country: "Germany")
Author.create(name: "Gerard de Villiers", country: "France")
Author.create(name: "Agatha Christie", country: "England")
Author.create(name: "Alex Pushkin", country: "Russia")
Book.create(title: "Some Book", description: "Interesting", publisher: "XYZ", language: "Englisg", price: 10.00 , length_page: 123, published: true, author_id: 1)Book.create(title: "Super Book", description: "Interesting and long", publisher: "ZZZ", language: "Japanese", price: 25.00 , length_page: 457, published: true, author_id: 2)Book.create(title: "Interesting Book", description: "Good and mysterious", publisher: "SSS", language: "Russian", price: 99.00 , length_page: 520, published: false, author_id: 3)Book.create(title: "Long Book", description: "Fascinating", publisher: "SomeCompany", language: "German", price: 13.00 , length_page: 50, published: true, author_id: 4)Book.create(title: "Short Book", description: "Jaw dropping", publisher: "BookLLC", language: "French", price: 25.00 , length_page: 999, published: true, author_id: 5)Book.create(title: "XYZ Book", description: "Astonishing", publisher: "BooksForAll", language: "Englisg", price: 8.00 , length_page: 260, published: false, author_id: 6)Book.create(title: "Book", description: "Impressive", publisher: "SuperBooks", language: "Russian", price: 3.00 , length_page: 10, published: true, author_id: 7)
rails generate controller Authors
rails generate controller Books





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What are user stories

How to Import Facebook Friends list into Excel

Payment Gateway Advice for SaaS and PayFac Payment Platforms

Object Oriented Programming(OOPs)

Avoiding Complexity

Project Management Dashboard Series — Part 1

Beginners guide to learn Cassandra-Part 1 : Cassandra overview

Automating CI/CD pipeline with Jenkins,Github,Docker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Oleg Ivanov

Oleg Ivanov

More from Medium

How to implement SOAP API Client in Ruby on Rails?

Ajax and Remote form submission in Rails

Incorporating Stripe Payment in React with backend rails

When and Why use React with Ruby on Rails?