This is the source code for the Santa Barbara Rails Group website, sbonrails.com.
Getting up and running
sbonrails is built and managed primarily the following:
- Ruby 1.8.x
- Rubygems 1.3.5
- Ruby on Rails 2.3.5
Before anything else, change into the newly created
We need to make sure all the gem dependencies are installed:
rake gems:install rake gems:install RAILS_ENV=test
Now we need to create an initial database. We currently assume you have MySQL installed, and that you can login as 'root' without a password.
Next migrate the database to the latest version:
At last, we can run the server:
This will keep running until you hit Control-C, but now you can open a browser and go to http://localhost:3000 to see the app running.
We are using shoulda & cucumber for our testing. Before running them, you need to run the following to create the test database:
rake db:create RAILS_ENV=test
At this point, you can run them with:
We are also using cucumber for user stories / integration testing. You can run them with:
You should go through the steps lined out in 'Getting up and running'.
To contribute, you should fork on GitHub, make your changes, and then either comment on an existing issue pointing at your changes, or create a new issue if it's a new bug or feature.
Design by Joshua Carver.