wikiedudashboard

https://github.com/wikieducationfoundation/wikiedudashboard

Ruby

Wiki Education Foundation's Wikipedia course dashboard system

SurveysHelper#set_course

If at all possible, find the course to associate with this survey.
Setting a course is necessary for conditional features of surveys — question
groups that only apply to certain campaigns, or for courses with certain tags
— to work.
First go based on slug. Next, go based on notification.
For preview mode, fall back to the course_select dropdown.
For a real survey, fall back to the user's latest course.

Source | Google | Stack overflow

Edit

git clone [email protected]:wikieducationfoundation/wikiedudashboard.git

cd wikiedudashboard

open app/helpers/surveys_helper.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-SurveysHelper-set_course-for-pr


# Commit to git

git add app/helpers/surveys_helper.rbgit commit -m "better docs for SurveysHelper#set_course"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-SurveysHelper-set_course-for-pr

hub pull-request


# Celebrate!