Welcome to Stage Orders
Stage Orders is a web-application framework that helps stage race support captains manage race resources.
At the command prompt, clone the Rails app:
<tt>git clone email@example.com:nomadicoder/stageorders.git</tt>
Install the GEMs:
Migrate the database:
Seed the database:
Go to localhost:3000/ and you'll see:
"Welcome aboard: You're riding Ruby on Rails!"
Go to localhost:3000/results and you'll see the stage results page
Go to 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:
Create an account:
<tt>u = User.new( email: "firstname.lastname@example.org", name: "sample", password: "mypassword", password_confirmation: "mypassword")</tt> <tt>u.save</tt>
Make a user an admin or staff, who can update data:
<tt>u.update_attribute :admin, true</tt> <tt>u.update_attribute :staff, true</tt>
To locate a user based on email address:
<tt>u = User.find( email: "email@example.com")</tt>
To locate a user based on name:
<tt>u = User.find( name: "sample")</tt>