Build a blog app in Rails with 5 commands

Build your first Rails app in 10 minutes with no experience needed, for absolute beginners.

Pro-tip: if any of the commands fail for permissions reasons, try again with 'sudo' to run the command as the super-user, eg: sudo gem install rails

Install Rails (this can take a while to run)

gem install rails

Make a new Rails app called 'blog'

rails new blog

Head on over to your app directory

cd blog

Use Rails scaffold to make 'Posts'

rails generate scaffold Post title:string content:text

Prepare your local database for that new model

rake db:migrate

Start the Rails server

rails server

See what you've done:

http://localhost:3000/posts