Permalink
Browse files

Merge branch 'master' of git://github.com/ccabot/gradesheet

  • Loading branch information...
2 parents a67a255 + 6021f85 commit e8bc0c2e32d7b2e75d2f0594155e079a1edb2dc5 @rnhurt committed Nov 7, 2010
Showing with 6 additions and 2 deletions.
  1. +4 −2 README.rdoc
  2. +2 −0 db/seeds.rb
View
6 README.rdoc
@@ -35,8 +35,10 @@ it should run on any system that runs Rails.
3. Modify <tt>database.yml</tt> to point to your database
4. Run <tt>rake db:migrate</tt> to create the database schema
5. Run <tt>rake fixtures:load</tt> to load the test data
-6. Run <tt>./script/server</tt> to start the development web server
-7. Fire up your web browser and point it to http://localhost:3000
+6. Run <tt>rake db:seed</tt> to load a bootstrap admin user
+7. Run <tt>./script/server</tt> to start the development web server
+8. Fire up your web browser and point it to http://localhost:3000
+9. Log in as <tt>admin</tt> with a password of <tt>password</tt> and enjoy!
== Building Documentation
Gradesheet is documented using the standard, built-in RDoc system. To build
View
2 db/seeds.rb
@@ -0,0 +1,2 @@
+s = Site.find_or_create_by_name 'seed site'
+User.find_or_create_by_login :login => 'admin', :site => s, :password => 'password', :password_confirmation => 'password', :first_name => 'seed', :last_name => 'user', :is_admin => true

0 comments on commit e8bc0c2

Please sign in to comment.