简体   繁体   English

Ruby on Rails是否有测验宝石?

[英]Is there a quiz gem for Ruby on Rails?

I'm looking for a simple quiz gem in Ruby on Rails. 我正在Ruby on Rails中寻找一个简单的测验宝石。 It needs to present the user with multiple choice questions (radio buttons, checkboxes only), tally up the right/wrong answers, and display the results at the end. 它需要向用户显示多个选择问题(单选按钮,仅复选框),对正确/错误答案进行提示,并在最后显示结果。 The quiz will be about 25 questions - 1 question per page. 测验约为25个问题-每页1个问题。 It also needs to integrate with the site I'm building, so it can't be a standalone site, or third-party site. 它还需要与我正在构建的网站集成,因此它不能是独立网站或第三方网站。

So far I've found this gem, which looks promising: https://github.com/NUBIC/surveyor 到目前为止,我已经找到了这个看起来很有前途的宝石: https : //github.com/NUBIC/surveyor

Anyone know of any other Quiz gems in Rails? 有人知道Rails中的其他Quiz宝石吗?

The surveyor gem is quite powerful and I can recommend it. 验船师的宝石非常强大,我可以推荐它。 There is one thing that you should note: you write the survey in a dsl (ruby file with special, easy to understand syntax) and then run a rake task. 您应该注意一件事:您将调查写入dsl(具有特殊且易于理解的语法的红宝石文件)中,然后运行rake任务。 This means that it's very useful for a one-off survey, where a developer can generate it (much easier and faster than doing it manually), but not if you want a non-technical person to generate surveys on her own. 这意味着它对于一次性调查非常有用,开发人员可以一次生成该调查(比手动完成要容易和快捷得多),但是如果您希望非技术人员自己生成调查,则不是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM