# File app/controllers/smerf_forms_controller.rb, line 32 def show # Retrieve the smerf form record, rebuild if required, also # retrieve the responses to this form if they exist retrieve_smerf_form(params[:id]) if (@smerf_forms_user) # Retrieve the responses @responses = @smerf_forms_user.responses # Render in edit mode if the user has already completed this form render(:action => "edit") else # Render in create mode if the user have not completed this form render(:action => "create") end end