Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dphilipson/sample_app
- Owner: dphilipson
- Created: 2012-04-22T10:12:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-06T10:28:33.000Z (over 12 years ago)
- Last Synced: 2024-10-13T16:07:48.920Z (3 months ago)
- Language: Ruby
- Size: 156 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'