├── .gitignore ├── .rvmrc ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── app ├── controllers │ ├── application_controller.rb │ └── surveys_controller.rb ├── helpers │ ├── application_helper.rb │ ├── error_messages_helper.rb │ ├── layout_helper.rb │ └── surveys_helper.rb ├── models │ ├── answer.rb │ ├── question.rb │ └── survey.rb └── views │ ├── layouts │ └── application.html.erb │ └── surveys │ ├── _answer_fields.html.erb │ ├── _form.html.erb │ ├── _question_fields.html.erb │ ├── edit.html.erb │ ├── index.html.erb │ ├── new.html.erb │ └── show.html.erb ├── config.ru ├── config ├── application.rb ├── boot.rb ├── database.yml ├── environment.rb ├── environments │ ├── development.rb │ ├── production.rb │ └── test.rb ├── initializers │ ├── backtrace_silencers.rb │ ├── inflections.rb │ ├── mime_types.rb │ ├── secret_token.rb │ └── session_store.rb ├── locales │ └── en.yml └── routes.rb ├── db ├── migrate │ ├── 20110215195058_create_surveys.rb │ ├── 20110215195147_create_questions.rb │ └── 20110215195246_create_answers.rb ├── schema.rb └── seeds.rb ├── doc └── README_FOR_APP ├── lib └── tasks │ └── .gitkeep ├── public ├── 404.html ├── 422.html ├── 500.html ├── favicon.ico ├── images │ └── rails.png ├── javascripts │ ├── application.js │ ├── controls.js │ ├── dragdrop.js │ ├── effects.js │ ├── prototype.js │ └── rails.js ├── robots.txt └── stylesheets │ ├── .gitkeep │ └── application.css ├── script └── rails ├── test ├── fixtures │ ├── answers.yml │ ├── questions.yml │ └── surveys.yml ├── functional │ └── surveys_controller_test.rb ├── performance │ └── browsing_test.rb ├── test_helper.rb └── unit │ ├── answer_test.rb │ ├── question_test.rb │ └── survey_test.rb └── vendor └── plugins └── .gitkeep /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/.gitignore -------------------------------------------------------------------------------- /.rvmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/.rvmrc -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/Rakefile -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /app/controllers/surveys_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/controllers/surveys_controller.rb -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/helpers/application_helper.rb -------------------------------------------------------------------------------- /app/helpers/error_messages_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/helpers/error_messages_helper.rb -------------------------------------------------------------------------------- /app/helpers/layout_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/helpers/layout_helper.rb -------------------------------------------------------------------------------- /app/helpers/surveys_helper.rb: -------------------------------------------------------------------------------- 1 | module SurveysHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/models/answer.rb: -------------------------------------------------------------------------------- 1 | class Answer < ActiveRecord::Base 2 | belongs_to :question 3 | end 4 | -------------------------------------------------------------------------------- /app/models/question.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/models/question.rb -------------------------------------------------------------------------------- /app/models/survey.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/models/survey.rb -------------------------------------------------------------------------------- /app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /app/views/surveys/_answer_fields.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/_answer_fields.html.erb -------------------------------------------------------------------------------- /app/views/surveys/_form.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/_form.html.erb -------------------------------------------------------------------------------- /app/views/surveys/_question_fields.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/_question_fields.html.erb -------------------------------------------------------------------------------- /app/views/surveys/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/edit.html.erb -------------------------------------------------------------------------------- /app/views/surveys/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/index.html.erb -------------------------------------------------------------------------------- /app/views/surveys/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/new.html.erb -------------------------------------------------------------------------------- /app/views/surveys/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/app/views/surveys/show.html.erb -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config.ru -------------------------------------------------------------------------------- /config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/application.rb -------------------------------------------------------------------------------- /config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/boot.rb -------------------------------------------------------------------------------- /config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/database.yml -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/environment.rb -------------------------------------------------------------------------------- /config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/environments/development.rb -------------------------------------------------------------------------------- /config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/environments/production.rb -------------------------------------------------------------------------------- /config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/environments/test.rb -------------------------------------------------------------------------------- /config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/initializers/backtrace_silencers.rb -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/initializers/inflections.rb -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/initializers/mime_types.rb -------------------------------------------------------------------------------- /config/initializers/secret_token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/initializers/secret_token.rb -------------------------------------------------------------------------------- /config/initializers/session_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/initializers/session_store.rb -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/locales/en.yml -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/config/routes.rb -------------------------------------------------------------------------------- /db/migrate/20110215195058_create_surveys.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/db/migrate/20110215195058_create_surveys.rb -------------------------------------------------------------------------------- /db/migrate/20110215195147_create_questions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/db/migrate/20110215195147_create_questions.rb -------------------------------------------------------------------------------- /db/migrate/20110215195246_create_answers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/db/migrate/20110215195246_create_answers.rb -------------------------------------------------------------------------------- /db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/db/schema.rb -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/db/seeds.rb -------------------------------------------------------------------------------- /doc/README_FOR_APP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/doc/README_FOR_APP -------------------------------------------------------------------------------- /lib/tasks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/404.html -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/422.html -------------------------------------------------------------------------------- /public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/500.html -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/images/rails.png -------------------------------------------------------------------------------- /public/javascripts/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/javascripts/application.js -------------------------------------------------------------------------------- /public/javascripts/controls.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/javascripts/controls.js -------------------------------------------------------------------------------- /public/javascripts/dragdrop.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/javascripts/dragdrop.js -------------------------------------------------------------------------------- /public/javascripts/effects.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/javascripts/effects.js -------------------------------------------------------------------------------- /public/javascripts/prototype.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/javascripts/prototype.js -------------------------------------------------------------------------------- /public/javascripts/rails.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/javascripts/rails.js -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/robots.txt -------------------------------------------------------------------------------- /public/stylesheets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/stylesheets/application.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/public/stylesheets/application.css -------------------------------------------------------------------------------- /script/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/script/rails -------------------------------------------------------------------------------- /test/fixtures/answers.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/fixtures/answers.yml -------------------------------------------------------------------------------- /test/fixtures/questions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/fixtures/questions.yml -------------------------------------------------------------------------------- /test/fixtures/surveys.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/fixtures/surveys.yml -------------------------------------------------------------------------------- /test/functional/surveys_controller_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/functional/surveys_controller_test.rb -------------------------------------------------------------------------------- /test/performance/browsing_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/performance/browsing_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /test/unit/answer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/unit/answer_test.rb -------------------------------------------------------------------------------- /test/unit/question_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/unit/question_test.rb -------------------------------------------------------------------------------- /test/unit/survey_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ryanb/complex-form-examples/HEAD/test/unit/survey_test.rb -------------------------------------------------------------------------------- /vendor/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------