This page describes how to configure this project on a developer workstation. Edit it to include your gems and databases.
Checkout from the Subversion URL on the Trac/SVN tab. Use your Assembla username and password.
If you use Radrails (with its embedded Subclipse) follow these svn checkout instructions
Any libraries that you need to load with GEM will be listed here. All can be retrieved with "gem install ".
gem install --include-dependencies
Gems from other sources...
For example: If you want to enable image thumbnails, install the Rmagick gem. This relies on the Imagemagick library, and on windows you will need to download the gem, unzip it, and follow the instructions in the README file to install Imagemagick and Rmagick.
In order to avoid overwriting your configuration files, we have renamed the configuration files that you are likely to modify to ".example". Please copy these files and edit the new versions to match your environment.
Set up the database
We update this database using Rails Migrations. Go to a console prompt in your application directory and run the Migrations with
rake db:migrate
If you start a Webbrick server for the rails application you just checked out and configured, you should be able to get the application root in a browser, usually on URL http://localhost:3000 . This will display the home page.
I'm installing breakout on my Ubuntu. I've already installed RoR with its gems, MySQL and RedRails (into Eclipse).
I'm following the "SetupDevelopment" and "EasySetup" tutorial.
I've configured database.yml correctly, and I've rename the files with x.rb.examble to x.rb
So now I just have to execute "rake db:migrate" command into my workspace/breakout prompt
I'm getting an error in "035_private_network_and_recently_tagged.rb". I've executed "rake db:migration --trace" and here is what I get:
:~/workspace/breakout_assembla/breakout$ sudo rake db:migrate --trace
(in /home/sepul/workspace/breakout_assembla/breakout)
Failed to init tools
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== 1 InitialSchema: migrating =================================================
-- create_table(:events)
-> 0.0043s
-- add_index(:events, :node_id)
-> 0.0087s
-- add_index(:events, :created_at)
-> 0.0065s
#..........after 34 migrations.........#
-- add_column(:spaces, :flow_instructions, :string, {:limit=>200})
-> 0.0079s
== 34 NewOptions: migrated (0.1068s) ==========================================
== 35 PrivateNetworkAndRecentlyTagged: migrating ==============================
-- execute("alter table flows modify column approved boolean")
-> 0.0141s
-- add_column(:users, :title, :string, {:limit=>40})
-> 0.0273s
-- add_column(:users, :address1, :string, {:limit=>100})
-> 0.0089s
-- add_column(:users, :address2, :string, {:limit=>100})
-> 0.0241s
-- add_column(:users, :zipcode, :string, {:limit=>10})
-> 0.0096s
-- add_column(:users, :city, :string, {:limit=>50})
-> 0.0086s
-- add_column(:users, :state, :string, {:limit=>20})
-> 0.0182s
-- add_column(:users, :country, :string, {:limit=>40})
-> 0.0832s
-- add_column(:users, :recently_tagged_tags, :string, {:limit=>100})
-> 0.0082s
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
/home/sepul/workspace/breakout_assembla/breakout/vendor/plugins/guid/lib/uuidtools.rb:236:in `timestamp_create'
/home/sepul/workspace/breakout_assembla/breakout/vendor/plugins/guid/lib/uuidtools.rb:226:in `synchronize'
/home/sepul/workspace/breakout_assembla/breakout/vendor/plugins/guid/lib/uuidtools.rb:226:in `timestamp_create'
/home/sepul/workspace/breakout_assembla/breakout/vendor/plugins/guid/lib/usesguid.rb:34:in `set_uuid'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:307:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:307:in `callback'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:304:in `each'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:304:in `callback'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1929:in `initialize'
./db/migrate//035_private_network_and_recently_tagged.rb:14:in `new'
./db/migrate//035_private_network_and_recently_tagged.rb:14:in `up_without_benchmarks'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:219:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:219:in `migrate'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:219:in `migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:348:in `migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:339:in `each'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:339:in `migrate'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:307:in `up'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:298:in `migrate'
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85
/usr/lib/ruby/1.8/rake.rb:387:in `call'
/usr/lib/ruby/1.8/rake.rb:387:in `execute'
/usr/lib/ruby/1.8/rake.rb:387:in `each'
/usr/lib/ruby/1.8/rake.rb:387:in `execute'
/usr/lib/ruby/1.8/rake.rb:357:in `invoke'
/usr/lib/ruby/1.8/rake.rb:350:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:350:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1924:in `run'
/usr/lib/ruby/1.8/rake.rb:1924:in `each'
/usr/lib/ruby/1.8/rake.rb:1924:in `run'
/usr/bin/rake:4
===========================================
what am I doing wrong?