smart-answers

Serves smart answers on GOV.UK

Github星跟踪图

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

Smart Answers

Smart Answer flow development

Smart Answers app development

Changes to the landing page

Changes to landing pages need to be sent to be sent to the content store for them to be rendered on the page. The rake task publishing_api:publish_all needs to be run once you have deployed your changes in each environment and can be done in Jenkins.

Debugging

Registering on GOV.UK

  • bundle exec rake publishing_api:publish_all will send smart answers to the publishing-api.

Search indexing

Content is now indexed automatically via the publishing API

Licence

MIT License

主要指标

概览
名称与所有者alphagov/smart-answers
主编程语言Ruby
编程语言Ruby (语言数: 6)
平台
许可证MIT License
所有者活动
创建于2011-10-26 15:39:01
推送于2025-07-04 08:48:13
最后一次提交
发布数6242
最新版本名称v1214 (发布于 )
第一版名称release_1 (发布于 2012-01-08 17:26:53)
用户参与
星数177
关注者数105
派生数120
提交数26.8k
已启用问题?
问题数61
打开的问题数6
拉请求数5914
打开的拉请求数10
关闭的拉请求数1260
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?