- Add new selectionbox question type.
- Add selectionbox_multiselect question option.
- Update RDoc with new question type details.
I’ve added a new question type using the select field type as requested by Alan Masterson. You can check out the Usage page for more details. You can use this new type by setting the question type to selectionbox. This will display all your answers as a drop down list of options from which the user can select a single answer.
A new field selectionbox_multiplechoice can be set for a select type question that allows the user to select multiple answers.
I’ve updated the testsmerf.yml file to include examples of the new question type. You can get this file from the vendor/plugins/smerf/generators/smerf/templates/smerf directory or you can run the smerf generator again for it to install the new version. You will need to delete the previous migration file for the generator to run.
Allow installation via the Rails plugin installer for information check out the Download page, you can now install the plugin using
ruby script/plugin install http://smerf.rubyforge.org/svn/stable/smerf
I’ve cleaned up the templates directory by removing all non-template files, this has allowed me to simplify the generator quite a bit.