We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line #29 says if (@Survey = Survey.find_by_access_code(params[:survey_code])) && (@response_set = ResponseSet.create(:survey => @Survey, :user_id => @current_user))
Shouldn't is say: if (@Survey = Survey.find_by_access_code(params[:survey_code])) && (@response_set = ResponseSet.create(:survey => @Survey, :user => @current_user))
(the results it was creating didn't properly have users attached).
The text was updated successfully, but these errors were encountered:
Yes, I believe that you are correct. We will fix this in the next release.
Sorry, something went wrong.
it depends, @current_user can be nil. i'll fix with a check for respond_to?(:id)
@current_user.id if @current_user isn't nil. Closed by 95fd530
No branches or pull requests
Line #29 says
if (@Survey = Survey.find_by_access_code(params[:survey_code])) && (@response_set = ResponseSet.create(:survey => @Survey, :user_id => @current_user))
Shouldn't is say:
if (@Survey = Survey.find_by_access_code(params[:survey_code])) && (@response_set = ResponseSet.create(:survey => @Survey, :user => @current_user))
(the results it was creating didn't properly have users attached).
The text was updated successfully, but these errors were encountered: