wikiedudashboard
https://github.com/wikieducationfoundation/wikiedudashboard
Ruby
Wiki Education Foundation's Wikipedia course dashboard system
Course#order_weeks
Ensures weeks for a course have order 1..weeks.count This is dangerous if creating or reordering timeline content except via TimelineController, where every week is processed from the submitted params, and blocks get resorted to the appropriate week if necessary. Weeks are expected to have the same order as their ids.
Edit
git clone [email protected]:wikieducationfoundation/wikiedudashboard.git
cd wikiedudashboard
open app/models/course.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Course-order_weeks-for-pr
# Commit to gitgit add app/models/course.rbgit commit -m "better docs for Course#order_weeks"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Course-order_weeks-for-pr
hub pull-request
# Celebrate!