Maintenance Release

The following changes have been made:

  • Bug fix: As per the bug reported by bgoodwin. SMERF now correctly handles numeric question codes. Previously if a numeric question code was used the validation functions did not work correctly as it was trying to access the responses hash extracted directly from the HTTP request using a numeric key when all the keys in the responses hash are strings. SMERF will now convert numeric codes to a string before saving to the DB.
  • When dealing with subquestions of type singlechoice it was not possible for the user to clear previously selected answers if they decided to select a non-subquestion answer. SMERF will now check to see if a non-subquestion answer was selected and if the subquestion type is singlechoice it will clear the answers of the subquestion. Additionally it will display an error message to inform the user of the ambiguous answer, here is an example error message: Are you aged over 40: Ambiguous answer provided for question ‘Specify your ages’, the answers to this question has been cleared. Thanks to Michael Franzl for reporting this problem.

You can download the changes from GitHub. Touch or change all your SMERF form definition files to force SMERF to re-process them.

2 Responses to “Maintenance Release”

  1. 1 DW

    Should you remove (or update) your RubyForge project page?

    That last version shown released is:
    smerf 0.1.0 April 14, 2008

    I almost dismissed the project, but I was lucky and decided to explore the “Project Home Page”

    Just a suggestion.


  2. 2 etienne

    Hi DW,

    Thanks for the suggestion, I’ve deactivated everything on Rubyforge and added a note to inform visitors that the site is no longer in use.

    Thanks again,


Leave a Reply