Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a quiz gem for Ruby on Rails?

I'm looking for a simple quiz gem in 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. 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

Anyone know of any other Quiz gems in Rails?

like image 228
blakeage Avatar asked Apr 27 '12 15:04

blakeage


People also ask

What are RubyGems in rails?

Gems in Rails are libraries that allow any Ruby on Rails developer to add functionalities without writing code. You can also call Ruby on Rails gems as plugins for adding features. There are RubyGems for almost everything – from authentication to payment gateway processing.

What is interface in Ruby on rails?

For Ruby on Rails gems, an interface is a command-line tool termed gem which can install and administer the libraries.The gems incorporates a Ruby runtime loader to assist in finding and loading installed gems from uniform library folders.

Why Ruby on Rails is the best for web development?

Ruby on Rails is a popular web development technology. It is simple, efficient, and often termed as the “startup technology.” Over 3.7 million web apps use Ruby on Rails. However, what makes rapid prototyping possible are the Ruby on Rails gems. They drastically reduce the time taken to code.

How to insert Bulk Records in Ruby on rails?

This Ruby Gem for Ruby on Rails is used to insert bulk records. It is one of the leading gems in the list of RoR gems that generates minimal SQL insert statements. It helps in eliminating the N+1 insert problem. As one of the top Rubygems, the best practice is to insert up to 10 records with ActiveRecord.


1 Answers

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. 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.

like image 62
OlliM Avatar answered Sep 20 '22 18:09

OlliM