From dece993db9d8b3f45acd46f1469c0b3f058c4abe Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 15 Sep 2010 15:35:05 -0700 Subject: [PATCH 1/2] Adjusting readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 734c67c92..2c8668b95 100644 --- a/README.md +++ b/README.md @@ -116,14 +116,12 @@ If you have never used github before, their [help desk](http://help.github.com/) ## Running Diaspora ### Install required gems -To start the app server for the **first time**, Bundler needs to grab Diaspora's gem depencencies. To allow this, run `bundle install` from Diaspora's root directory. - -It is important to run a bundle install every so often, in the event of a new gem dependency. We will make sure to make an announcement in the event of a gem change. +To start the app server for the first time, you need to use Bundler to install Diaspora's gem depencencies. Run `bundle install` from Diaspora's root directory. Bundler will also warn you if there is a new dependency and you need to bundle install again. ### Start Mongo After installing the above, run `sudo mongod` from where mongo is installed to start mongo. -Diaspora will **not run** unless mongo is running. Mongo will not run by default, and will need to be started every time you wish to use or run the test suite for Diaspora. +Diaspora will not run unless mongo is running. Mongo will not run by default, and will need to be started every time you wish to use or run the test suite for Diaspora. ### Run the app server Once mongo is running and bundler has finished, run `bundle exec thin start` from the root Diaspora directory. This will start the app server in development mode[.](http://bit.ly/9mwtUw) From b2b2748fea3dfd1d94f0d39b0eb6a5ebf61b0493 Mon Sep 17 00:00:00 2001 From: Daniel Vincent Grippi Date: Wed, 15 Sep 2010 15:39:04 -0700 Subject: [PATCH 2/2] seed aspects on user create --- app/models/user.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 639a55cc5..229637b66 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -36,6 +36,7 @@ class User after_create :setup_person + after_create :seed_aspects before_validation :do_bad_things before_save :downcase_username @@ -292,6 +293,11 @@ class User opts[:person][:serialized_key] = generate_key User.create!(opts) end + + def seed_aspects + aspect(:name => "Family") + aspect(:name => "Work") + end def self.create(opts ={}) puts opts.inspect