Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dphilipson/sample_app

Ruby on Rails Tutorial sample application
https://github.com/dphilipson/sample_app

Last synced: about 2 months ago
JSON representation

Ruby on Rails Tutorial sample application

Awesome Lists containing this project

README

        

# Ruby on Rails Tutorial: sample application

This is the sample application for
[*Ruby on Rails Tutorial: Learn Rails by Example*](http://railstutorial.org)
by [Michael Hartl](http://michaelhartl.com/).

# How to set up PostgreSQL

1. Make sure gem 'pg' is in the Gemfile.
2. Make sure config/database.yml is talking about postgresql, and make a note of
the user name (sample\_app) here. This will be done by default if you create
the project with 'rails new sample\_app --database=postgresql'
3. Open PostgreSQL by running 'sudo -u postgres psql'
4. Run 'CREATE ROLE sample\_app CREATEDB LOGIN'
5. Run 'rake db:create:all'
6. Run 'rake db:migrate'