Stage Orders is a web-application framework that helps stage race support captains manage race resources.
At the command prompt, clone the Rails app:
git clone [email protected]:nomadicoder/stageorders.git
Install the GEMs:
bundle install
Migrate the database:
rake db:migrate`
Seed the database:
rake db:seed
Go to http://localhost:3000/ and you'll see:
"Welcome aboard: You're riding Ruby on Rails!"
Go to http://localhost:3000/results and you'll see the stage results page
Go to http://localhost:3000/status and you'll see the stage readiness page
To see restricted information or update results and status, you need to have an user account. Accounts may only be created from the rails console.
- Enter rails console mode:
rails console
- Create an account:
u = User.new( email: "[email protected]", name: "sample", password: "mypassword", password_confirmation: "mypassword")`
u.save
- Make a user an admin or staff, who can update data:
u.update_attribute :admin, true
u.update_attribute :staff, true
- To locate a user based on email address:
u = User.find( email: "[email protected]")
- To locate a user based on name:
u = User.find( name: "sample")