Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
colszowka committed Feb 21, 2009
1 parent 0e33c7c commit 965979a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.textile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ h1. ActiveRecord Skeleton


A basic skeleton for ActiveRecord-backed Ruby apps A basic skeleton for ActiveRecord-backed Ruby apps


http://blog.olszowka.de/2009/02/21/introducing-activerecord-skeleton/

h2. Features h2. Features


* YAML database config * YAML database config
Expand All @@ -13,15 +15,14 @@ h2. Features


h2. Setup h2. Setup


# Get "tarball":http://github.com/colszowka/activerecord-skeleton/tarball/master # Get and extract "tarball":http://github.com/colszowka/activerecord-skeleton/tarball/master or git clone this repository
# Extract tarball to desired folder
# Copy config/database.sample.yml to config/database.yml # Copy config/database.sample.yml to config/database.yml
# Create a migration with <code>rake generate:migration NAME=create_users</code> and add your code in <code>db/migrate/001_create_users.rb</code> # Create a migration with <code>rake generate:migration NAME=create_users</code> and add your code in <code>db/migrate/001_create_users.rb</code>
# <code>rake migrate</code> (if you stick to the default SQLite setup, the database for the current environment will be automatically created upon migration) # <code>rake migrate</code> (if you stick to the default SQLite setup, the database for the current environment will be automatically created upon migration)
# Create a model in lib/user.rb: <code>class User < ActiveRecord::Base; end;</code> # Create a model in lib/user.rb: <code>class User < ActiveRecord::Base; end;</code>
# Add application code in project root directory and <code>require 'init'</code> in it # Add application code in project root directory and <code>require 'init'</code> in it


h2. Usage with "Sinatra":http://www.github.com/sinatra/sinatra h2. Example for usage with "Sinatra":http://www.github.com/sinatra/sinatra


In your application file (say <code>app.rb</code> sitting in the project root), simply add <code>require 'init'</code> <b>after</b> <code>require 'sinatra'</code>. In your application file (say <code>app.rb</code> sitting in the project root), simply add <code>require 'init'</code> <b>after</b> <code>require 'sinatra'</code>.


Expand Down

0 comments on commit 965979a

Please sign in to comment.