Hello everyone -

I implemented a survey module based on Ryan Bates's Railscasts on nested

I need users to take a survey upon close of a request they had
submitted. The survey builder works great, but Ryan didn't include a
way to ANSWER the survey questions, so now I'm stuck.

I took a stab at it.........

added responses migration:

  class CreateResponses < ActiveRecord::Migration
    def self.up
      create_table :responses do |t|
        t.integer :request_id
        t.integer :question_id
        t.integer :answer_id
        t.integer :survey_id

    def self.down
      drop_table :responses