officialklashed said over 1 year ago on Gathering Questionnaire Responses :
I have two questions  David Kimura  

1) How do I link to the response show page from questionnaire index page?

I tried
<%= link_to pluralize(questionnaire.responses.count, "Response"), questionnaire_response_path(questionnaire, @response) %>

I got error
No route matches {:action=>"show", :controller=>"responses", :id=>nil, :questionnaire_id=>"1"}, missing required keys: [:id]

2) How do I make this questionnaire available for student and lecturer without having to write double code? The difference between the lecturer and student questionnaire is obviously the questions asked.

I can share my github link for help.