Skip to content

alphagov/smart-answers

Folders and files

NameName
Last commit message
Last commit date
Feb 16, 2016
Nov 3, 2015
Jan 22, 2016
Oct 27, 2011
Feb 9, 2016
Feb 18, 2016
Oct 27, 2011
Aug 13, 2012
Nov 27, 2015
Feb 18, 2016
May 27, 2014
Jun 29, 2012
Feb 3, 2016
Oct 15, 2015
Feb 16, 2016
Feb 16, 2016
Mar 11, 2015
Feb 1, 2016
Jul 10, 2012
Oct 27, 2011
Dec 8, 2014
Sep 24, 2015
Apr 2, 2014
Feb 2, 2012
Jan 21, 2016

Repository files navigation

Smart Answers

Smart answers are a great tool for content designers to present complex information in a quick and simple way. Defining what they are – decision trees? calculators? tools? is immaterial – what they do is provide a reusable technical framework to build a quick and simple answer to a complex question.

Read more in Lisa Scott's GDS blog post.

Screenshots

Student Finance Forms screenshot

Live examples

Nomenclature

  • Smart Answer: The flow, questions and outcomes.

  • Flow: Defines the questions, outcomes and the rules for navigating between them.

  • Landing page: Contains a description of the Smart Answer and the "Start now" button that leads to the first question.

  • Question page: Contains an individual question that's asked in order to help arrive at at an outcome.

  • Outcome page: Contains the result of the Smart Answer based on responses to individual questions.

Technical documentation

This is a Ruby on Rails application that contains:

  • A Rails application to serve Smart Answers
  • A DSL for creating Smart Answers
  • The Smart Answers that appear on GOV.UK

NOTE. This application doesn't use a database and as such it does not include the ActiveRecord Railtie in application.rb.

Dependencies

  • alphagov/static: provides static assets (JS/CSS) and the GOV.UK templates.
  • nodejs/node: provides JS runtime for precompiling assets for deployment

Running the application

See:

Running the test suite

$ bundle exec rake

Smart Answers

### Smart Answer flow development

Smart Answers app development

Debugging

Licence

MIT License