saasbook / ruql Goto Github PK
View Code? Open in Web Editor NEWRuby DSL based quiz maker (RUby Question Language)
License: Other
Ruby DSL based quiz maker (RUby Question Language)
License: Other
How likely is it that support for raw HTML will be disappearing? (I guess I can always use a fork..)
I'm looking to use ruql to build a bunch of courses, but we need to be able to have images in our question bodies.
Images as answers would also be useful, and I don't think there is currently a way to do that natively?
It looks like maybe lib/fill_in.rb is missing? When attempting to generate a quiz from the supplied example.rb file, I receive the following error.
Artemis% ./quiz example.rb html5 --template=./html_template/template.html.erb > questionfile.html
./quiz:42:in `instance_eval': undefined method `fill_in' for #<Quiz:0x007fc46b1b8578> (NoMethodError)
from /Users/jmeady/Code/saas-class/quiz/lib/quiz.rb:101:in `instance_eval'
from /Users/jmeady/Code/saas-class/quiz/lib/quiz.rb:101:in `quiz'
from (eval):4:in `main'
from ./quiz:42:in `instance_eval'
from ./quiz:42:in `main'
from ./quiz:47:in `<main>'
Artemis% grep -r -n fill_in .
./example.rb:19: fill_in :points => 2 do
./example.rb:25: fill_in do
./example.rb:31: fill_in :order => false do
Our scantrons only allow choices A-E per answer, but you can specify additional choices by combining multiple letters, eg AB, AC, etc. HTML and other output modes of Ruql should support a 'max_choices' option so that, eg, if it is set to 3, then a 5-choice question would print the choices as A, B, C, AB,AC (or similar), and an error would be raised if any questions are "select all that apply". Of course, given the finding that 3 choices are optimal for most MCQs, this is low priority :-)
i mean, why not?
Hello @armandofox @tansaku @pattrsn @deliahu @bjnord,
I'm very curious if this can be linked to the database? We are trying to create a quiz game that allows members to get to know other members using member data from the database.
Thank you!
-Monroe
When questions are generated without solutions, the answer choices look like this (correct):
<ol class="answers">
<li>choice 1</li>
<li>choice 2</li>
</ol>
But when --solutions
is used, they incorrectly look like this (note the embedded <p>...</p>
), resulting in extra vertical whitespace:
<ol class="answers">
<li class="incorrect"><p>choice 1</p></li>
<li class="correct"><p>choice 2</p></li>
</ol>
I was trying to run the following code. The system can not assign 0.5 pt to a question. Any floating point number less than 1 will lead to 1pt on a question.
choice_answer :points => 0.5, :randomize => true do
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.