qa 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -13
  3. data/lib/generators/qa/install/USAGE +2 -0
  4. data/lib/generators/qa/install/install_generator.rb +2 -1
  5. data/lib/generators/qa/local/USAGE +5 -0
  6. data/lib/generators/qa/local/local_generator.rb +9 -0
  7. data/lib/generators/qa/local/templates/config/authorities.yml +1 -0
  8. data/lib/generators/qa/local/templates/config/authorities/states.yml +101 -0
  9. data/lib/qa/authorities/local.rb +3 -1
  10. data/lib/qa/version.rb +1 -1
  11. data/spec/controllers/terms_controller_spec.rb +13 -3
  12. data/spec/internal/Gemfile +11 -16
  13. data/spec/internal/Gemfile.lock +51 -44
  14. data/spec/internal/Rakefile +1 -1
  15. data/spec/internal/app/assets/stylesheets/application.css +5 -3
  16. data/spec/internal/app/views/layouts/application.html.erb +2 -2
  17. data/spec/internal/bin/rails +4 -0
  18. data/spec/internal/bin/rake +4 -0
  19. data/spec/internal/bin/spring +18 -0
  20. data/spec/internal/config/authorities.yml +1 -0
  21. data/spec/internal/config/authorities/authority_A.yml +10 -0
  22. data/spec/internal/config/authorities/authority_B.yml +7 -0
  23. data/spec/internal/config/authorities/authority_C.yml +4 -0
  24. data/spec/internal/config/authorities/authority_D.yml +4 -0
  25. data/spec/internal/config/authorities/states.yml +101 -0
  26. data/spec/internal/config/database.yml +8 -8
  27. data/spec/internal/config/environment.rb +1 -1
  28. data/spec/internal/config/environments/development.rb +10 -2
  29. data/spec/internal/config/environments/production.rb +6 -3
  30. data/spec/internal/config/environments/test.rb +5 -2
  31. data/spec/internal/config/initializers/cookies_serializer.rb +3 -0
  32. data/spec/internal/config/initializers/mime_types.rb +0 -1
  33. data/spec/internal/config/initializers/session_store.rb +1 -1
  34. data/spec/internal/config/routes.rb +1 -1
  35. data/spec/internal/config/secrets.yml +22 -0
  36. data/spec/internal/db/development.sqlite3 +0 -0
  37. data/spec/internal/db/migrate/{20140611161143_create_qa_subject_mesh_terms.qa.rb → 20140620210534_create_qa_subject_mesh_terms.qa.rb} +0 -0
  38. data/spec/internal/db/migrate/{20140611161144_create_qa_mesh_tree.qa.rb → 20140620210535_create_qa_mesh_tree.qa.rb} +0 -0
  39. data/spec/internal/db/migrate/{20140611161145_add_term_lower_to_qa_subject_mesh_terms.qa.rb → 20140620210536_add_term_lower_to_qa_subject_mesh_terms.qa.rb} +0 -0
  40. data/spec/internal/db/schema.rb +1 -1
  41. data/spec/internal/db/test.sqlite3 +0 -0
  42. data/spec/internal/lib/generators/test_app_generator.rb +9 -1
  43. data/spec/internal/log/development.log +339 -206
  44. data/spec/internal/public/404.html +20 -11
  45. data/spec/internal/public/422.html +20 -11
  46. data/spec/internal/public/500.html +19 -10
  47. data/spec/internal/test/test_helper.rb +1 -3
  48. data/spec/lib/authorities_local_spec.rb +0 -4
  49. data/spec/spec_helper.rb +0 -4
  50. data/spec/test_app_templates/lib/generators/test_app_generator.rb +9 -1
  51. metadata +40 -14
  52. data/spec/internal/config/initializers/secret_token.rb +0 -12
@@ -3,4 +3,4 @@
3
3
 
4
4
  require File.expand_path('../config/application', __FILE__)
5
5
 
6
- Internal::Application.load_tasks
6
+ Rails.application.load_tasks
@@ -5,9 +5,11 @@
5
5
  * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
6
  * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
7
  *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
10
12
  *
11
- *= require_self
12
13
  *= require_tree .
14
+ *= require_self
13
15
  */
@@ -2,8 +2,8 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Internal</title>
5
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
9
  <body>
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
2
6
  APP_PATH = File.expand_path('../../config/application', __FILE__)
3
7
  require_relative '../config/boot'
4
8
  require 'rails/commands'
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
2
6
  require_relative '../config/boot'
3
7
  require 'rake'
4
8
  Rake.application.run
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This file loads spring without using Bundler, in order to be fast
4
+ # It gets overwritten when you run the `spring binstub` command
5
+
6
+ unless defined?(Spring)
7
+ require "rubygems"
8
+ require "bundler"
9
+
10
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
11
+ ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
12
+ ENV["GEM_HOME"] = ""
13
+ Gem.paths = ENV
14
+
15
+ gem "spring", match[1]
16
+ require "spring/binstub"
17
+ end
18
+ end
@@ -0,0 +1 @@
1
+ :local_path: "config/authorities"
@@ -0,0 +1,10 @@
1
+ :terms:
2
+ - :id: A1
3
+ :term: Abc Term A1
4
+ :active: true
5
+ - :id: A2
6
+ :term: Term A2
7
+ :active: false
8
+ - :id: A3
9
+ :term: Abc Term A3
10
+ :active: true
@@ -0,0 +1,7 @@
1
+ terms:
2
+ - id:
3
+ term: Term B1
4
+ - id:
5
+ term: Term B2
6
+ - id:
7
+ term: Term B3
@@ -0,0 +1,4 @@
1
+ :terms:
2
+ - Term C1
3
+ - Term C2
4
+ - Term C3
@@ -0,0 +1,4 @@
1
+ # this file is purposfully malformed so it should raise an error.
2
+ :terms:
3
+ -:bar: baz
4
+ :biz: bzzz
@@ -0,0 +1,101 @@
1
+ :terms:
2
+ - :id: AL
3
+ :term: Alabama
4
+ - :id: AK
5
+ :term: Alaska
6
+ - :id: AZ
7
+ :term: Arizona
8
+ - :id: AR
9
+ :term: Arkansas
10
+ - :id: CA
11
+ :term: California
12
+ - :id: CO
13
+ :term: Colorado
14
+ - :id: CT
15
+ :term: Connecticut
16
+ - :id: DE
17
+ :term: Delaware
18
+ - :id: FL
19
+ :term: Florida
20
+ - :id: GA
21
+ :term: Georgia
22
+ - :id: HI
23
+ :term: Hawaii
24
+ - :id: ID
25
+ :term: Idaho
26
+ - :id: IL
27
+ :term: Illinois
28
+ - :id: IN
29
+ :term: Indiana
30
+ - :id: IA
31
+ :term: Iowa
32
+ - :id: KS
33
+ :term: Kansas
34
+ - :id: KY
35
+ :term: Kentucky
36
+ - :id: LA
37
+ :term: Louisana
38
+ - :id: ME
39
+ :term: Maine
40
+ - :id: MD
41
+ :term: Maryland
42
+ - :id: MA
43
+ :term: Massachusetts
44
+ - :id: MI
45
+ :term: Michigan
46
+ - :id: MN
47
+ :term: Minnesota
48
+ - :id: MS
49
+ :term: Mississippi
50
+ - :id: MO
51
+ :term: Missouri
52
+ - :id: MT
53
+ :term: Montana
54
+ - :id: NE
55
+ :term: Nebraska
56
+ - :id: NV
57
+ :term: Nevada
58
+ - :id: NH
59
+ :term: New Hampshire
60
+ - :id: NJ
61
+ :term: New Jersey
62
+ - :id: NM
63
+ :term: New Mexico
64
+ - :id: NY
65
+ :term: New York
66
+ - :id: NC
67
+ :term: North Carolina
68
+ - :id: ND
69
+ :term: North Dakota
70
+ - :id: OH
71
+ :term: Ohio
72
+ - :id: OK
73
+ :term: Oklahoma
74
+ - :id: OR
75
+ :term: Oregon
76
+ - :id: PA
77
+ :term: Pennsylvania
78
+ - :id: RI
79
+ :term: Rhode Island
80
+ - :id: SC
81
+ :term: Sourth Carolina
82
+ - :id: SD
83
+ :term: South Dakota
84
+ - :id: TN
85
+ :term: Tennessee
86
+ - :id: TX
87
+ :term: Texas
88
+ - :id: UT
89
+ :term: Utah
90
+ - :id: VT
91
+ :term: Vermont
92
+ - :id: VA
93
+ :term: Virginia
94
+ - :id: WA
95
+ :term: Washington
96
+ - :id: WV
97
+ :term: West Virginia
98
+ - :id: WI
99
+ :term: Wisconsin
100
+ - :id: WY
101
+ :term: Wyoming
@@ -3,23 +3,23 @@
3
3
  #
4
4
  # Ensure the SQLite 3 gem is defined in your Gemfile
5
5
  # gem 'sqlite3'
6
- development:
6
+ #
7
+ default: &default
7
8
  adapter: sqlite3
8
- database: db/development.sqlite3
9
9
  pool: 5
10
10
  timeout: 5000
11
11
 
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
12
16
  # Warning: The database defined as "test" will be erased and
13
17
  # re-generated from your development database when you run "rake".
14
18
  # Do not set this db to the same as development or production.
15
19
  test:
16
- adapter: sqlite3
20
+ <<: *default
17
21
  database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
22
 
21
23
  production:
22
- adapter: sqlite3
24
+ <<: *default
23
25
  database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -2,4 +2,4 @@
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
4
  # Initialize the Rails application.
5
- Internal::Application.initialize!
5
+ Rails.application.initialize!
@@ -1,4 +1,4 @@
1
- Internal::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
@@ -19,11 +19,19 @@ Internal::Application.configure do
19
19
  # Print deprecation notices to the Rails logger.
20
20
  config.active_support.deprecation = :log
21
21
 
22
- # Raise an error on page load if there are pending migrations
22
+ # Raise an error on page load if there are pending migrations.
23
23
  config.active_record.migration_error = :page_load
24
24
 
25
25
  # Debug mode disables concatenation and preprocessing of assets.
26
26
  # This option may cause significant delays in view rendering with a large
27
27
  # number of complex assets.
28
28
  config.assets.debug = true
29
+
30
+ # Adds additional error checking when serving assets at runtime.
31
+ # Checks for improperly declared sprockets dependencies.
32
+ # Raises helpful error messages.
33
+ config.assets.raise_runtime_errors = true
34
+
35
+ # Raises error for missing translations
36
+ # config.action_view.raise_on_missing_translations = true
29
37
  end
@@ -1,11 +1,11 @@
1
- Internal::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
7
  # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
8
+ # your application in memory, allowing both threaded web servers
9
9
  # and those relying on copy on write to perform better.
10
10
  # Rake tasks automatically ignore this option for performance.
11
11
  config.eager_load = true
@@ -66,7 +66,7 @@ Internal::Application.configure do
66
66
  # config.action_mailer.raise_delivery_errors = false
67
67
 
68
68
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
69
+ # the I18n.default_locale when a translation cannot be found).
70
70
  config.i18n.fallbacks = true
71
71
 
72
72
  # Send deprecation notices to registered listeners.
@@ -77,4 +77,7 @@ Internal::Application.configure do
77
77
 
78
78
  # Use default logging formatter so that PID and timestamp are not suppressed.
79
79
  config.log_formatter = ::Logger::Formatter.new
80
+
81
+ # Do not dump schema after migrations.
82
+ config.active_record.dump_schema_after_migration = false
80
83
  end
@@ -1,4 +1,4 @@
1
- Internal::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -14,7 +14,7 @@ Internal::Application.configure do
14
14
 
15
15
  # Configure static asset server for tests with Cache-Control for performance.
16
16
  config.serve_static_assets = true
17
- config.static_cache_control = "public, max-age=3600"
17
+ config.static_cache_control = 'public, max-age=3600'
18
18
 
19
19
  # Show full error reports and disable caching.
20
20
  config.consider_all_requests_local = true
@@ -33,4 +33,7 @@ Internal::Application.configure do
33
33
 
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
+
37
+ # Raises error for missing translations
38
+ # config.action_view.raise_on_missing_translations = true
36
39
  end
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -2,4 +2,3 @@
2
2
 
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Internal::Application.config.session_store :cookie_store, key: '_internal_session'
3
+ Rails.application.config.session_store :cookie_store, key: '_internal_session'
@@ -1,4 +1,4 @@
1
- Internal::Application.routes.draw do
1
+ Rails.application.routes.draw do
2
2
  mount Qa::Engine => '/qa'
3
3
 
4
4
  # The priority is based upon order of creation: first created -> highest priority.
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 24f6ec7110ce529c108749a50583984fc6f0054a75295bda74463d539533495e4d5ddc449bc56662798969a9003dd46b3a2fd47fbd262c3838499cce8a41f000
15
+
16
+ test:
17
+ secret_key_base: e3e44f980833d37e413b1ba72e98c54edc32e1adcc4731586afc71176947f577c560c2aa9ad98240977327d195ed4d1ccbe25a1294eec18573f6ef18a631ac67
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20140611161145) do
14
+ ActiveRecord::Schema.define(version: 20140620210536) do
15
15
 
16
16
  create_table "qa_mesh_trees", force: true do |t|
17
17
  t.string "term_id"
Binary file
@@ -1,7 +1,7 @@
1
1
  require 'rails/generators'
2
2
 
3
3
  class TestAppGenerator < Rails::Generators::Base
4
- source_root "./spec/test_app_templates"
4
+ source_root Rails.root
5
5
 
6
6
  def update_app
7
7
  Bundler.with_clean_env do
@@ -13,6 +13,14 @@ class TestAppGenerator < Rails::Generators::Base
13
13
  generate "qa:install"
14
14
  end
15
15
 
16
+ def run_local_authority_installer
17
+ generate "qa:local"
18
+ end
19
+
20
+ def copy_local_authority_fixtures
21
+ directory "../fixtures/authorities", "config/authorities"
22
+ end
23
+
16
24
  def run_migrations
17
25
  rake "qa:install:migrations"
18
26
  rake "db:migrate"
@@ -1,212 +1,345 @@
1
-  (8.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateQaSubjectMeshTerms (20140611161143)
5
-  (0.1ms) begin transaction
6
-  (0.3ms) CREATE TABLE "qa_subject_mesh_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "term" varchar(255), "synonyms" text) 
7
-  (0.1ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_id" ON "qa_subject_mesh_terms" ("term_id")
8
-  (0.1ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term" ON "qa_subject_mesh_terms" ("term")
9
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140611161143"]]
10
-  (0.7ms) commit transaction
11
- Migrating to CreateQaMeshTree (20140611161144)
12
-  (0.0ms) begin transaction
13
-  (0.2ms) CREATE TABLE "qa_mesh_trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "tree_number" varchar(255)) 
14
-  (0.1ms) CREATE INDEX "index_qa_mesh_trees_on_term_id" ON "qa_mesh_trees" ("term_id")
15
-  (0.1ms) CREATE INDEX "index_qa_mesh_trees_on_tree_number" ON "qa_mesh_trees" ("tree_number")
16
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140611161144"]]
1
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.4ms) select sqlite_version(*)
3
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateQaSubjectMeshTerms (20140620210534)
6
+  (0.1ms) begin transaction
7
+  (0.3ms) CREATE TABLE "qa_subject_mesh_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "term" varchar(255), "synonyms" text)
8
+  (0.1ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_id" ON "qa_subject_mesh_terms" ("term_id")
9
+  (0.1ms) SELECT sql
10
+ FROM sqlite_master
11
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
12
+ UNION ALL
13
+ SELECT sql
14
+ FROM sqlite_temp_master
15
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
16
+
17
+  (0.1ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term" ON "qa_subject_mesh_terms" ("term")
18
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140620210534"]]
17
19
   (0.6ms) commit transaction
18
- Migrating to AddTermLowerToQaSubjectMeshTerms (20140611161145)
20
+ Migrating to CreateQaMeshTree (20140620210535)
19
21
   (0.0ms) begin transaction
20
-  (0.3ms) ALTER TABLE "qa_subject_mesh_terms" ADD "term_lower" varchar(255)
21
-  (0.1ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_lower" ON "qa_subject_mesh_terms" ("term_lower")
22
-  (0.7ms) DROP INDEX "index_qa_subject_mesh_terms_on_term"
23
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140611161145"]]
24
-  (0.6ms) commit transaction
22
+  (0.2ms) CREATE TABLE "qa_mesh_trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "tree_number" varchar(255)) 
23
+  (0.1ms) CREATE INDEX "index_qa_mesh_trees_on_term_id" ON "qa_mesh_trees" ("term_id")
24
+  (0.0ms)  SELECT sql
25
+ FROM sqlite_master
26
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
27
+ UNION ALL
28
+ SELECT sql
29
+ FROM sqlite_temp_master
30
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
31
+ 
32
+  (0.1ms) CREATE INDEX "index_qa_mesh_trees_on_tree_number" ON "qa_mesh_trees" ("tree_number")
33
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140620210535"]]
34
+  (0.7ms) commit transaction
35
+ Migrating to AddTermLowerToQaSubjectMeshTerms (20140620210536)
36
+  (0.0ms) begin transaction
37
+  (0.3ms) ALTER TABLE "qa_subject_mesh_terms" ADD "term_lower" varchar(255)
38
+  (0.1ms)  SELECT sql
39
+ FROM sqlite_master
40
+ WHERE name='index_qa_subject_mesh_terms_on_term' AND type='index'
41
+ UNION ALL
42
+ SELECT sql
43
+ FROM sqlite_temp_master
44
+ WHERE name='index_qa_subject_mesh_terms_on_term' AND type='index'
45
+ 
46
+  (0.0ms) SELECT sql
47
+ FROM sqlite_master
48
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
49
+ UNION ALL
50
+ SELECT sql
51
+ FROM sqlite_temp_master
52
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
53
+
54
+  (0.1ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_lower" ON "qa_subject_mesh_terms" ("term_lower")
55
+  (0.0ms) SELECT sql
56
+ FROM sqlite_master
57
+ WHERE name='index_qa_subject_mesh_terms_on_term_lower' AND type='index'
58
+ UNION ALL
59
+ SELECT sql
60
+ FROM sqlite_temp_master
61
+ WHERE name='index_qa_subject_mesh_terms_on_term_lower' AND type='index'
62
+
63
+  (0.0ms)  SELECT sql
64
+ FROM sqlite_master
65
+ WHERE name='index_qa_subject_mesh_terms_on_term' AND type='index'
66
+ UNION ALL
67
+ SELECT sql
68
+ FROM sqlite_temp_master
69
+ WHERE name='index_qa_subject_mesh_terms_on_term' AND type='index'
70
+ 
71
+  (0.0ms) SELECT sql
72
+ FROM sqlite_master
73
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
74
+ UNION ALL
75
+ SELECT sql
76
+ FROM sqlite_temp_master
77
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
78
+
79
+  (0.6ms) DROP INDEX "index_qa_subject_mesh_terms_on_term"
80
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140620210536"]]
81
+  (0.7ms) commit transaction
25
82
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
-  (9.1ms) CREATE TABLE "qa_mesh_trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "tree_number" varchar(255)) 
27
-  (0.8ms) CREATE INDEX "index_qa_mesh_trees_on_term_id" ON "qa_mesh_trees" ("term_id")
28
-  (0.7ms) CREATE INDEX "index_qa_mesh_trees_on_tree_number" ON "qa_mesh_trees" ("tree_number")
29
-  (0.8ms) CREATE TABLE "qa_subject_mesh_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "term" varchar(255), "synonyms" text, "term_lower" varchar(255))
30
-  (0.7ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_id" ON "qa_subject_mesh_terms" ("term_id")
31
-  (0.8ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_lower" ON "qa_subject_mesh_terms" ("term_lower")
32
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
33
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34
-  (0.1ms) SELECT version FROM "schema_migrations"
35
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140611161145')
36
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140611161143')
37
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140611161144')
83
+  (0.1ms)  SELECT sql
84
+ FROM sqlite_master
85
+ WHERE name='index_qa_mesh_trees_on_tree_number' AND type='index'
86
+ UNION ALL
87
+ SELECT sql
88
+ FROM sqlite_temp_master
89
+ WHERE name='index_qa_mesh_trees_on_tree_number' AND type='index'
90
+ 
91
+  (0.1ms) SELECT sql
92
+ FROM sqlite_master
93
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
94
+ UNION ALL
95
+ SELECT sql
96
+ FROM sqlite_temp_master
97
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
98
+
99
+  (0.1ms)  SELECT sql
100
+ FROM sqlite_master
101
+ WHERE name='index_qa_subject_mesh_terms_on_term_lower' AND type='index'
102
+ UNION ALL
103
+ SELECT sql
104
+ FROM sqlite_temp_master
105
+ WHERE name='index_qa_subject_mesh_terms_on_term_lower' AND type='index'
106
+ 
107
+  (0.1ms) SELECT sql
108
+ FROM sqlite_master
109
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
110
+ UNION ALL
111
+ SELECT sql
112
+ FROM sqlite_temp_master
113
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
114
+
115
+  (1.0ms) CREATE TABLE "qa_mesh_trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "tree_number" varchar(255)) 
116
+  (0.1ms) select sqlite_version(*)
117
+  (0.7ms) CREATE INDEX "index_qa_mesh_trees_on_term_id" ON "qa_mesh_trees" ("term_id")
118
+  (0.1ms) SELECT sql
119
+ FROM sqlite_master
120
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
121
+ UNION ALL
122
+ SELECT sql
123
+ FROM sqlite_temp_master
124
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
125
+
126
+  (0.6ms) CREATE INDEX "index_qa_mesh_trees_on_tree_number" ON "qa_mesh_trees" ("tree_number")
127
+  (0.6ms) CREATE TABLE "qa_subject_mesh_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "term" varchar(255), "synonyms" text, "term_lower" varchar(255))
128
+  (0.5ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_id" ON "qa_subject_mesh_terms" ("term_id")
129
+  (0.1ms) SELECT sql
130
+ FROM sqlite_master
131
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
132
+ UNION ALL
133
+ SELECT sql
134
+ FROM sqlite_temp_master
135
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
136
+
137
+  (0.6ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_lower" ON "qa_subject_mesh_terms" ("term_lower")
138
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
139
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
140
+  (0.1ms) SELECT version FROM "schema_migrations"
141
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140620210536')
142
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140620210534')
143
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140620210535')
38
144
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
145
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
-  (0.7ms) CREATE TABLE "qa_mesh_trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "tree_number" varchar(255)) 
41
-  (0.6ms) CREATE INDEX "index_qa_mesh_trees_on_term_id" ON "qa_mesh_trees" ("term_id")
42
-  (0.6ms) CREATE INDEX "index_qa_mesh_trees_on_tree_number" ON "qa_mesh_trees" ("tree_number")
43
-  (0.6ms) CREATE TABLE "qa_subject_mesh_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "term" varchar(255), "synonyms" text, "term_lower" varchar(255))
44
-  (0.7ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_id" ON "qa_subject_mesh_terms" ("term_id")
45
-  (1.3ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_lower" ON "qa_subject_mesh_terms" ("term_lower")
46
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
47
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
48
-  (0.1ms) SELECT version FROM "schema_migrations"
49
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140611161145')
50
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140611161143')
51
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140611161144')
52
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
-  (0.1ms) begin transaction
54
- Processing by Qa::TermsController#index as HTML
55
- Parameters: {"q"=>"foo", "vocab"=>"loc", "sub_authority"=>"foo"}
56
- Filter chain halted as :check_sub_authority rendered or redirected
57
- Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
58
-  (0.1ms) rollback transaction
59
-  (0.0ms) begin transaction
60
- Processing by Qa::TermsController#index as HTML
61
- Parameters: {"vocab"=>nil}
62
- Filter chain halted as :check_vocab_param rendered or redirected
63
- Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
64
-  (0.0ms) rollback transaction
65
-  (0.0ms) begin transaction
66
- Processing by Qa::TermsController#index as HTML
67
- Parameters: {"q"=>"foo", "vocab"=>"bar"}
68
- Filter chain halted as :check_authority rendered or redirected
69
- Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
70
-  (0.0ms) rollback transaction
71
-  (0.1ms) begin transaction
72
- Processing by Qa::TermsController#index as HTML
73
- Parameters: {"q"=>nil}
74
- Filter chain halted as :check_vocab_param rendered or redirected
75
- Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
76
-  (0.1ms) rollback transaction
77
-  (0.0ms) begin transaction
78
- Processing by Qa::TermsController#index as HTML
79
- Parameters: {"q"=>"foo", "vocab"=>"loc", "sub_authority"=>"relators"}
80
- Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)
81
-  (0.1ms) rollback transaction
82
-  (0.1ms) begin transaction
83
- Processing by Qa::TermsController#index as HTML
84
- Parameters: {"q"=>"Tibetan", "vocab"=>"tgnlang"}
85
- Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.0ms)
86
-  (0.1ms) rollback transaction
87
-  (0.1ms) begin transaction
146
+  (0.1ms)  SELECT sql
147
+ FROM sqlite_master
148
+ WHERE name='index_qa_mesh_trees_on_tree_number' AND type='index'
149
+ UNION ALL
150
+ SELECT sql
151
+ FROM sqlite_temp_master
152
+ WHERE name='index_qa_mesh_trees_on_tree_number' AND type='index'
153
+ 
154
+  (0.1ms) SELECT sql
155
+ FROM sqlite_master
156
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
157
+ UNION ALL
158
+ SELECT sql
159
+ FROM sqlite_temp_master
160
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
161
+
162
+  (0.1ms)  SELECT sql
163
+ FROM sqlite_master
164
+ WHERE name='index_qa_subject_mesh_terms_on_term_lower' AND type='index'
165
+ UNION ALL
166
+ SELECT sql
167
+ FROM sqlite_temp_master
168
+ WHERE name='index_qa_subject_mesh_terms_on_term_lower' AND type='index'
169
+ 
170
+  (0.1ms) SELECT sql
171
+ FROM sqlite_master
172
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
173
+ UNION ALL
174
+ SELECT sql
175
+ FROM sqlite_temp_master
176
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
177
+
178
+  (0.9ms) CREATE TABLE "qa_mesh_trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "tree_number" varchar(255)) 
179
+  (0.1ms) select sqlite_version(*)
180
+  (0.8ms) CREATE INDEX "index_qa_mesh_trees_on_term_id" ON "qa_mesh_trees" ("term_id")
181
+  (0.1ms) SELECT sql
182
+ FROM sqlite_master
183
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
184
+ UNION ALL
185
+ SELECT sql
186
+ FROM sqlite_temp_master
187
+ WHERE name='index_qa_mesh_trees_on_term_id' AND type='index'
188
+
189
+  (0.7ms) CREATE INDEX "index_qa_mesh_trees_on_tree_number" ON "qa_mesh_trees" ("tree_number")
190
+  (0.7ms) CREATE TABLE "qa_subject_mesh_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "term_id" varchar(255), "term" varchar(255), "synonyms" text, "term_lower" varchar(255))
191
+  (0.8ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_id" ON "qa_subject_mesh_terms" ("term_id")
192
+  (0.1ms) SELECT sql
193
+ FROM sqlite_master
194
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
195
+ UNION ALL
196
+ SELECT sql
197
+ FROM sqlite_temp_master
198
+ WHERE name='index_qa_subject_mesh_terms_on_term_id' AND type='index'
199
+
200
+  (0.7ms) CREATE INDEX "index_qa_subject_mesh_terms_on_term_lower" ON "qa_subject_mesh_terms" ("term_lower")
201
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
202
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
203
+  (0.1ms) SELECT version FROM "schema_migrations"
204
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140620210536')
205
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140620210534')
206
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140620210535')
207
+
208
+
209
+ Started GET "/" for 127.0.0.1 at 2014-06-20 17:05:59 -0400
210
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
211
+ Processing by Rails::WelcomeController#index as HTML
212
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (2.1ms)
213
+ Completed 200 OK in 23ms (Views: 11.4ms | ActiveRecord: 0.0ms)
214
+
215
+
216
+ Started GET "/qa/search/local/states?q=search_term" for 127.0.0.1 at 2014-06-20 17:06:01 -0400
217
+ Processing by Qa::TermsController#search as HTML
218
+ Parameters: {"q"=>"search_term", "vocab"=>"local", "sub_authority"=>"states"}
219
+ Rendered text template (0.0ms)
220
+ Completed 200 OK in 15ms (Views: 1.8ms | ActiveRecord: 0.0ms)
221
+
222
+
223
+ Started GET "/qa/search/local/states?q=No" for 127.0.0.1 at 2014-06-20 17:06:10 -0400
224
+ Processing by Qa::TermsController#search as HTML
225
+ Parameters: {"q"=>"No", "vocab"=>"local", "sub_authority"=>"states"}
226
+ Rendered text template (0.0ms)
227
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
228
+
229
+
230
+ Started GET "/qa/search/local/states?q=Nor" for 127.0.0.1 at 2014-06-20 17:06:15 -0400
231
+ Processing by Qa::TermsController#search as HTML
232
+ Parameters: {"q"=>"Nor", "vocab"=>"local", "sub_authority"=>"states"}
233
+ Rendered text template (0.0ms)
234
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
235
+
236
+
237
+ Started GET "/qa/index/local/states" for 127.0.0.1 at 2014-06-20 17:07:08 -0400
238
+
239
+ ActionController::RoutingError (No route matches [GET] "/qa/index/local/states"):
240
+ actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
241
+ actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
242
+ railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'
243
+ railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call'
244
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
245
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'
246
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'
247
+ railties (4.1.1) lib/rails/rack/logger.rb:20:in `call'
248
+ actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
249
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
250
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
251
+ activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
252
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
253
+ actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call'
254
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
255
+ railties (4.1.1) lib/rails/engine.rb:514:in `call'
256
+ railties (4.1.1) lib/rails/application.rb:144:in `call'
257
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
258
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
259
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
260
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
261
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
262
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
263
+
264
+
265
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
266
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
267
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
268
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (7.0ms)
269
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (34.7ms)
270
+
271
+
272
+ Started GET "/qa/index/local/states/" for 127.0.0.1 at 2014-06-20 17:07:14 -0400
273
+
274
+ ActionController::RoutingError (No route matches [GET] "/qa/index/local/states"):
275
+ actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
276
+ actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
277
+ railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'
278
+ railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call'
279
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
280
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'
281
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'
282
+ railties (4.1.1) lib/rails/rack/logger.rb:20:in `call'
283
+ actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
284
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
285
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
286
+ activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
287
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
288
+ actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call'
289
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
290
+ railties (4.1.1) lib/rails/engine.rb:514:in `call'
291
+ railties (4.1.1) lib/rails/application.rb:144:in `call'
292
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
293
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
294
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
295
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
296
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
297
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
298
+
299
+
300
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
301
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
302
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.3ms)
303
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms)
304
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (16.3ms)
305
+
306
+
307
+ Started GET "/qa/local/states/" for 127.0.0.1 at 2014-06-20 17:07:20 -0400
308
+
309
+ ActionController::RoutingError (No route matches [GET] "/qa/local/states"):
310
+ actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
311
+ actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
312
+ railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'
313
+ railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call'
314
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
315
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'
316
+ activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'
317
+ railties (4.1.1) lib/rails/rack/logger.rb:20:in `call'
318
+ actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
319
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
320
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
321
+ activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
322
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
323
+ actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call'
324
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
325
+ railties (4.1.1) lib/rails/engine.rb:514:in `call'
326
+ railties (4.1.1) lib/rails/application.rb:144:in `call'
327
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
328
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
329
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
330
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
331
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
332
+ /Users/awead/.rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
333
+
334
+
335
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
336
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
337
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
338
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms)
339
+ Rendered /Users/awead/.gem/ruby/2.1.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (15.5ms)
340
+
341
+
342
+ Started GET "/qa/terms/local/states/" for 127.0.0.1 at 2014-06-20 17:07:29 -0400
88
343
  Processing by Qa::TermsController#index as HTML
89
- Parameters: {"q"=>"foo", "vocab"=>"loc"}
90
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)
91
-  (0.1ms) rollback transaction
92
-  (0.0ms) begin transaction
93
-  (0.1ms) select sqlite_version(*)
94
- Class Create Many Without Validations Or Callbacks (0.5ms) INSERT INTO "qa_subject_mesh_terms" ("term_id","term","term_lower","synonyms") VALUES ('D008288','Malaria','malaria','Marsh Fever|Plasmodium Infections|Remittent Fever|Infections, Plasmodium|Paludism|Fever, Marsh|Fever, Remittent|Infection, Plasmodium|Plasmodium Infection'),('D000001','Calcimycin','calcimycin','A-23187|A23187|Antibiotic A23187|A 23187|A23187, Antibiotic'),('D005260','Female','female','Females'),('D005261','Female Urogenital Diseases and Pregnancy Complications','female urogenital diseases and pregnancy complications',''),('D010272','Parasitic Diseases','parasitic diseases','Disease, Parasitic|Diseases, Parasitic|Parasitic Disease'),('D011528','Protozoan Infections','protozoan infections','Histomoniasis|Infections, Protozoan|Histomoniases|Infection, Protozoan|Protozoan Infection'),('D062310','Tropical Diseases','tropical diseases','Disease, Tropical|Diseases, Tropical|Tropical Disease'),('D013568','Pathological Conditions, Signs and Symptoms','pathological conditions, signs and symptoms','Symptoms and General Pathology'),('D001583','Benzoxazoles','benzoxazoles',''),('D006574','Heterocyclic Compounds, 2-Ring','heterocyclic compounds, 2-ring','2-Ring Heterocyclic Compounds|Compounds, 2-Ring Heterocyclic|Heterocyclic Compounds, 2 Ring'),('D006571','Heterocyclic Compounds','heterocyclic compounds','Compounds, Heterocyclic')
95
- Class Create Many Without Validations Or Callbacks (0.3ms) INSERT INTO "qa_mesh_trees" ("term_id","tree_number") VALUES ('D008288','C03.752.530'),('D008288','C23.996.660'),('D000001','D03.438.221.173'),('D005261','C13'),('D010272','C03'),('D011528','C03.752'),('D062310','C03.883'),('D062310','C23.996'),('D013568','C23'),('D001583','D03.438.221'),('D006574','D03.438'),('D006571','D03')
96
- Qa::SubjectMeshTerm Load (0.1ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" WHERE "qa_subject_mesh_terms"."term_lower" = 'malaria'
97
- Qa::SubjectMeshTerm Load (0.1ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" WHERE "qa_subject_mesh_terms"."term" = 'Malaria'
98
- Qa::SubjectMeshTerm Load (0.1ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" WHERE "qa_subject_mesh_terms"."term_id" = 'D008288'
99
- Qa::SubjectMeshTerm Load (0.1ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms"
100
-  (0.4ms) rollback transaction
101
-  (0.1ms) begin transaction
102
- SQL (0.4ms) INSERT INTO "qa_subject_mesh_terms" ("term", "term_id", "term_lower") VALUES (?, ?, ?) [["term", "Mr Plow"], ["term_id", "1"], ["term_lower", "mr plow"]]
103
-  (0.7ms) commit transaction
104
-  (0.1ms) begin transaction
105
- SQL (0.2ms) INSERT INTO "qa_subject_mesh_terms" ("term", "term_id", "term_lower") VALUES (?, ?, ?) [["term", "Mr Snow"], ["term_id", "2"], ["term_lower", "mr snow"]]
106
-  (0.5ms) commit transaction
107
-  (0.0ms) begin transaction
108
- SQL (0.2ms) INSERT INTO "qa_subject_mesh_terms" ("term", "term_id", "term_lower") VALUES (?, ?, ?) [["term", "Mrs Fields"], ["term_id", "3"], ["term_lower", "mrs fields"]]
109
-  (0.5ms) commit transaction
110
-  (0.0ms) begin transaction
111
- Qa::SubjectMeshTerm Load (0.2ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" WHERE (term_lower LIKE 'mr%') LIMIT 10
112
-  (0.1ms) rollback transaction
113
-  (0.1ms) begin transaction
114
- Qa::SubjectMeshTerm Load (0.2ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" WHERE "qa_subject_mesh_terms"."term_id" = '2' ORDER BY "qa_subject_mesh_terms"."id" ASC LIMIT 1
115
-  (0.1ms) rollback transaction
116
- SQL (0.7ms) DELETE FROM "qa_subject_mesh_terms"
117
-  (0.1ms) begin transaction
118
-  (0.0ms) rollback transaction
119
-  (0.1ms) begin transaction
120
-  (0.0ms) rollback transaction
121
-  (0.0ms) begin transaction
122
-  (0.0ms) rollback transaction
123
-  (0.1ms) begin transaction
124
-  (0.0ms) rollback transaction
125
-  (0.1ms) begin transaction
126
-  (0.0ms) rollback transaction
127
-  (0.1ms) begin transaction
128
-  (0.0ms) rollback transaction
129
-  (0.1ms) begin transaction
130
-  (0.0ms) rollback transaction
131
-  (0.1ms) begin transaction
132
-  (0.1ms) rollback transaction
133
-  (0.1ms) begin transaction
134
-  (0.0ms) rollback transaction
135
-  (0.0ms) begin transaction
136
-  (0.1ms) rollback transaction
137
-  (0.1ms) begin transaction
138
-  (0.1ms) rollback transaction
139
-  (0.1ms) begin transaction
140
-  (0.1ms) rollback transaction
141
-  (0.1ms) begin transaction
142
-  (0.1ms) rollback transaction
143
-  (0.1ms) begin transaction
144
-  (0.1ms) rollback transaction
145
-  (0.1ms) begin transaction
146
-  (0.1ms) rollback transaction
147
-  (0.1ms) begin transaction
148
-  (0.1ms) rollback transaction
149
-  (0.0ms) begin transaction
150
- SQL (0.3ms) INSERT INTO "qa_subject_mesh_terms" ("term", "term_id") VALUES (?, ?) [["term", "Glyphon"], ["term_id", "ABCDEFG"]]
151
-  (0.8ms) commit transaction
152
-  (0.0ms) begin transaction
153
-  (0.0ms) SAVEPOINT active_record_1
154
- SQL (0.2ms) INSERT INTO "qa_mesh_trees" ("term_id", "tree_number") VALUES (?, ?) [["term_id", "ABCDEFG"], ["tree_number", "D1.2.3.4"]]
155
-  (0.0ms) RELEASE SAVEPOINT active_record_1
156
- Qa::SubjectMeshTerm Load (0.1ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" INNER JOIN qa_mesh_trees ON qa_subject_mesh_terms.term_id = qa_mesh_trees.term_id WHERE (qa_mesh_trees.tree_number = 'D1.2.3.4')
157
-  (0.3ms) rollback transaction
158
-  (0.1ms) begin transaction
159
-  (0.0ms) rollback transaction
160
-  (0.0ms) begin transaction
161
- Qa::MeshTree Load (0.1ms) SELECT "qa_mesh_trees".* FROM "qa_mesh_trees" WHERE "qa_mesh_trees"."term_id" = 'ABCDEFG'
162
-  (0.0ms) rollback transaction
163
-  (0.0ms) begin transaction
164
-  (0.0ms) SAVEPOINT active_record_1
165
- SQL (0.2ms) INSERT INTO "qa_subject_mesh_terms" ("synonyms", "term_id") VALUES (?, ?) [["synonyms", "b|c"], ["term_id", "a"]]
166
-  (0.0ms) RELEASE SAVEPOINT active_record_1
167
-  (0.4ms) rollback transaction
168
-  (0.1ms) begin transaction
169
- SQL (2.7ms) DELETE FROM "qa_subject_mesh_terms" WHERE "qa_subject_mesh_terms"."id" = ? [["id", 4]]
170
-  (0.6ms) commit transaction
171
-  (0.0ms) begin transaction
172
- Class Create Many Without Validations Or Callbacks (0.3ms) INSERT INTO "qa_subject_mesh_terms" ("term_id","term","term_lower","synonyms") VALUES ('5','test','test','')
173
- Qa::SubjectMeshTerm Load (0.1ms) SELECT "qa_subject_mesh_terms".* FROM "qa_subject_mesh_terms" WHERE "qa_subject_mesh_terms"."term_id" = 5 LIMIT 1
174
-  (0.4ms) rollback transaction
175
-  (0.1ms) begin transaction
176
-  (0.0ms) rollback transaction
177
-  (0.0ms) begin transaction
178
-  (0.0ms) rollback transaction
179
-  (0.0ms) begin transaction
180
-  (0.0ms) rollback transaction
181
-  (0.1ms) begin transaction
182
-  (0.1ms) rollback transaction
183
-  (0.0ms) begin transaction
184
-  (0.1ms) rollback transaction
185
-  (0.0ms) begin transaction
186
-  (0.0ms) rollback transaction
187
-  (0.1ms) begin transaction
188
-  (0.0ms) rollback transaction
189
-  (0.1ms) begin transaction
190
-  (0.1ms) rollback transaction
191
-  (0.3ms) begin transaction
192
-  (0.1ms) rollback transaction
193
-  (0.0ms) begin transaction
194
-  (0.1ms) rollback transaction
195
-  (0.0ms) begin transaction
196
-  (0.0ms) rollback transaction
197
-  (0.0ms) begin transaction
198
-  (0.0ms) rollback transaction
199
-  (0.0ms) begin transaction
200
-  (0.0ms) rollback transaction
201
-  (0.0ms) begin transaction
202
-  (0.0ms) rollback transaction
203
-  (0.0ms) begin transaction
204
-  (0.1ms) rollback transaction
205
-  (0.0ms) begin transaction
206
-  (0.0ms) rollback transaction
207
-  (0.0ms) begin transaction
208
-  (0.0ms) rollback transaction
209
-  (0.0ms) begin transaction
210
-  (0.0ms) rollback transaction
211
-  (0.0ms) begin transaction
212
-  (0.0ms) rollback transaction
344
+ Parameters: {"vocab"=>"local", "sub_authority"=>"states"}
345
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)