Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Multiple Choice link #126

Closed
kbuffardi opened this issue Jan 29, 2018 · 5 comments
Closed

Broken Multiple Choice link #126

kbuffardi opened this issue Jan 29, 2018 · 5 comments

Comments

@kbuffardi
Copy link
Contributor

I'm getting an error:

ActionController::UrlGenerationError No route matches {:action=>"practice", :controller=>"exercises", :id=>nil} missing required keys: [:id]

...from the home page when I click on the Multiple Choice link to the URL: https://codeworkout.cs.vt.edu/gym/exercises/any?question_type=1

I was logged in when this happened. See following screen grab:

screen shot 2018-01-28 at 8 43 19 pm

@ayaankazerouni
Copy link
Member

Fixed on the staging branch. There were no public MCQs. I added an appropriate message if a public exercise with the right question_type/language filter is not found. But we probably should have some public MCQs if that link is on the home page.

@s-edwards
Copy link
Member

Ayaan, can you do a search real quick and see which MCQs aren't associated with the "Big Java" textbook? We should probably review those that seem most promising for making public.

Incidentally, we should probably also provide a way to filter by question type in the gym ... and also add tag clouds there like we always wanted (well, after SIGCSE anyway).

@ayaankazerouni
Copy link
Member

Looks like roughly half the MCQs (53 / 107) are not associated with Big Java. A cursory glance at their external_ids makes it look like a lot of them (maybe all) belong to assignments or exams.

@kbuffardi
Copy link
Contributor Author

Do only certain users have permissions to add new exercises? I've added a course with my account but while I see how to create a new workout, I don't see any links/buttons to create new exercises. I even tried to sneak my way to the right URL but going to https://codeworkout.cs.vt.edu/gym/exercises/new redirects me to the homepage with the error message:

You are not authorized to access that page.

If I can have access to create exercises, I'll start adding some for my class

@ayaankazerouni
Copy link
Member

Closing.

@kbuffardi, right now, most users are not authorised to create new exercises, but we hope for that to not be the case soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants