qwester 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -90,24 +90,34 @@ Qwester can be used within a Rails app. See test/dummy.
90
90
 
91
91
  == Integration with ActiveAdmin
92
92
 
93
- Qwester contains a set of ActiveAdmin registration files, that allow Qwester
93
+ Qwester contains a set of ActiveAdmin register files, that allow Qwester
94
94
  models to be managed from within the parent app's active_admin space. Of course
95
95
  ActiveAdmin needs to be installed and working in the parent rails application,
96
96
  for this to work.
97
97
 
98
- To use the Qwester ActiveAdmin registration files, add this to the active_admin
98
+ To use the Qwester ActiveAdmin register files, add this to the active_admin
99
99
  initializer in your application.
100
100
 
101
101
  config.load_paths << Qwester.active_admin_load_path
102
102
 
103
103
  See test/dummy/config/initializers/active_admin.rb for an example
104
104
 
105
- If you wish to over-ride some of Qwester's active admin registrations you will
105
+ === Local modifications of qwester active admin pages
106
+ If you wish to over-ride some of Qwester's active admin registers you will
106
107
  need to reorder the active_admin load_paths. In this case, use this form of
107
108
  the load_paths declaration:
108
109
 
109
110
  config.load_paths = [Qwester.active_admin_load_path] + config.load_paths
110
111
 
112
+ One side-effect of this that I have been unable to solve, is that if you modify
113
+ an over-riding register file while the app is running, the load order is altered
114
+ and the qwester register file over-rides the local app's register file until the
115
+ app is restarted. Therefore, you have to restart the app before modifications
116
+ to over-riding register files take effect. In practice this only affects the
117
+ development environment, as in both test and production the app is restarted
118
+ after a change.
119
+
120
+ === Active admin menus
111
121
  Links to the admin pages for Qwester models will appear in a 'Qwester' sub-menu.
112
122
  If you wish to change the name of the menu parent group, add this to an
113
123
  initializer:
@@ -65,9 +65,15 @@ module Qwester
65
65
  else
66
66
  f.input :description, :input_html => { :rows => 3}
67
67
  end
68
+ end
69
+
70
+ f.inputs "Output Link" do
68
71
  f.input :url
72
+ f.input :link_text
73
+ end
74
+
75
+ f.inputs "Logic" do
69
76
  f.input :rule, :input_html => { :rows => 3}
70
-
71
77
  end
72
78
 
73
79
  f.inputs("Questions") do
@@ -1,3 +1,7 @@
1
1
  module Qwester
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
4
+
5
+ # 0.0.5 - minor update
6
+ # Fixes issue where active admin rule set form did not include link text field.
7
+ #
Binary file
Binary file
@@ -38755,3 +38755,274 @@ Processing by Admin::QwesterQuestionsController#show as HTML
38755
38755
  CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 2) ORDER BY qwester_answers.position DESC LIMIT 1
38756
38756
  Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (249.5ms)
38757
38757
  Completed 200 OK in 280ms (Views: 263.4ms | ActiveRecord: 1.0ms)
38758
+ Connecting to database specified by database.yml
38759
+
38760
+
38761
+ Started GET "/" for 127.0.0.1 at 2013-01-29 13:33:11 +0000
38762
+ Processing by Qwester::QuestionnairesController#index as HTML
38763
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" 
38764
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (11.4ms)
38765
+ Completed 200 OK in 682ms (Views: 665.7ms | ActiveRecord: 1.2ms)
38766
+
38767
+
38768
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38769
+ Served asset /application.css - 200 OK (89ms)
38770
+
38771
+
38772
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38773
+ Served asset /active_admin.css - 200 OK (111ms)
38774
+
38775
+
38776
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38777
+ Served asset /jquery.js - 200 OK (28ms)
38778
+
38779
+
38780
+ Started GET "/assets/questionnaires.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38781
+ Served asset /questionnaires.css - 200 OK (7ms)
38782
+
38783
+
38784
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38785
+ Served asset /jquery_ujs.js - 200 OK (12ms)
38786
+
38787
+
38788
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38789
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (12ms)
38790
+
38791
+
38792
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38793
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (2ms)
38794
+
38795
+
38796
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38797
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (11ms)
38798
+
38799
+
38800
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:12 +0000
38801
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (12ms)
38802
+
38803
+
38804
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38805
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (15ms)
38806
+
38807
+
38808
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38809
+ Served asset /active_admin/pages/application.js - 304 Not Modified (16ms)
38810
+
38811
+
38812
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38813
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (17ms)
38814
+
38815
+
38816
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38817
+ Served asset /active_admin/application.js - 304 Not Modified (58ms)
38818
+
38819
+
38820
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38821
+ Served asset /questionnaires.js - 200 OK (1ms)
38822
+
38823
+
38824
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38825
+ Served asset /active_admin.js - 200 OK (37ms)
38826
+
38827
+
38828
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:13 +0000
38829
+ Served asset /application.js - 200 OK (100ms)
38830
+
38831
+
38832
+ Started GET "/admin" for 127.0.0.1 at 2013-01-29 13:33:19 +0000
38833
+ Processing by Admin::DashboardController#index as HTML
38834
+ Completed 401 Unauthorized in 4ms
38835
+
38836
+
38837
+ Started GET "/admin/login" for 127.0.0.1 at 2013-01-29 13:33:19 +0000
38838
+ Processing by ActiveAdmin::Devise::SessionsController#new as HTML
38839
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (5.7ms)
38840
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (729.0ms)
38841
+ Completed 200 OK in 955ms (Views: 928.1ms | ActiveRecord: 0.2ms)
38842
+
38843
+
38844
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:20 +0000
38845
+ Served asset /active_admin.css - 304 Not Modified (57ms)
38846
+
38847
+
38848
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:20 +0000
38849
+ Served asset /jquery.js - 304 Not Modified (6ms)
38850
+
38851
+
38852
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:20 +0000
38853
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
38854
+
38855
+
38856
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:20 +0000
38857
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (0ms)
38858
+
38859
+
38860
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:20 +0000
38861
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (9ms)
38862
+
38863
+
38864
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:20 +0000
38865
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (0ms)
38866
+
38867
+
38868
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38869
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (23ms)
38870
+
38871
+
38872
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38873
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (9ms)
38874
+
38875
+
38876
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38877
+ Served asset /active_admin/pages/application.js - 304 Not Modified (16ms)
38878
+
38879
+
38880
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38881
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (2ms)
38882
+
38883
+
38884
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38885
+ Served asset /active_admin/application.js - 304 Not Modified (16ms)
38886
+
38887
+
38888
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38889
+ Served asset /active_admin.js - 304 Not Modified (13ms)
38890
+
38891
+
38892
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38893
+ Served asset /questionnaires.js - 304 Not Modified (0ms)
38894
+
38895
+
38896
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38897
+ Served asset /application.js - 304 Not Modified (12ms)
38898
+
38899
+
38900
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:21 +0000
38901
+ Served asset /active_admin/print.css - 200 OK (8ms)
38902
+
38903
+
38904
+ Started POST "/admin/login" for 127.0.0.1 at 2013-01-29 13:33:28 +0000
38905
+ Processing by ActiveAdmin::Devise::SessionsController#create as HTML
38906
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"5I0P44KhuL0XtHIsexLjc9SaUEYWAb17BDnU9GThMz0=", "admin_user"=>{"email"=>"admin@warwickshire.gov.uk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Login"}
38907
+ AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'admin@warwickshire.gov.uk' LIMIT 1
38908
+  (0.1ms) begin transaction
38909
+  (1.6ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-01-28 15:55:09.262648', "current_sign_in_at" = '2013-01-29 13:33:28.797930', "sign_in_count" = 7, "updated_at" = '2013-01-29 13:33:28.846473' WHERE "admin_users"."id" = 1
38910
+  (154.6ms) commit transaction
38911
+ Redirected to http://localhost:3000/admin
38912
+ Completed 302 Found in 892ms (ActiveRecord: 0.0ms)
38913
+
38914
+
38915
+ Started GET "/admin" for 127.0.0.1 at 2013-01-29 13:33:29 +0000
38916
+ Processing by Admin::DashboardController#index as HTML
38917
+ AdminUser Load (6.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
38918
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (81.5ms)
38919
+ Completed 200 OK in 131ms (Views: 120.0ms | ActiveRecord: 6.5ms)
38920
+
38921
+
38922
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:29 +0000
38923
+ Served asset /active_admin.css - 304 Not Modified (78ms)
38924
+
38925
+
38926
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-29 13:33:29 +0000
38927
+ Served asset /application.js - 200 OK (14ms)
38928
+
38929
+
38930
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-01-29 13:33:29 +0000
38931
+ Served asset /active_admin.js - 200 OK (9ms)
38932
+
38933
+
38934
+ Started GET "/assets/active_admin/nested_menu_arrow.gif" for 127.0.0.1 at 2013-01-29 13:33:30 +0000
38935
+ Served asset /active_admin/nested_menu_arrow.gif - 304 Not Modified (57ms)
38936
+
38937
+
38938
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-01-29 13:33:52 +0000
38939
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (27ms)
38940
+
38941
+
38942
+ Started GET "/admin/qwester_rule_sets" for 127.0.0.1 at 2013-01-29 13:33:54 +0000
38943
+ Processing by Admin::QwesterRuleSetsController#index as HTML
38944
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
38945
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_rule_sets" LIMIT 30 OFFSET 0) subquery_for_count
38946
+  (0.2ms) SELECT COUNT(*) FROM "qwester_rule_sets" 
38947
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_rule_sets" LIMIT 30 OFFSET 0) subquery_for_count
38948
+ Qwester::RuleSet Load (1.9ms) SELECT "qwester_rule_sets".* FROM "qwester_rule_sets" ORDER BY "qwester_rule_sets"."id" desc LIMIT 30 OFFSET 0
38949
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "qwester_answers"."id") FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2
38950
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "qwester_answers"."id") FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 1
38951
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (604.3ms)
38952
+ Completed 200 OK in 773ms (Views: 640.7ms | ActiveRecord: 3.8ms)
38953
+
38954
+
38955
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:55 +0000
38956
+ Served asset /active_admin.css - 304 Not Modified (29ms)
38957
+
38958
+
38959
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-01-29 13:33:55 +0000
38960
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (0ms)
38961
+
38962
+
38963
+ Started GET "/assets/active_admin/orderable.png" for 127.0.0.1 at 2013-01-29 13:33:56 +0000
38964
+ Served asset /active_admin/orderable.png - 304 Not Modified (33ms)
38965
+
38966
+
38967
+ Started GET "/assets/active_admin/datepicker/datepicker-input-icon.png" for 127.0.0.1 at 2013-01-29 13:33:56 +0000
38968
+ Served asset /active_admin/datepicker/datepicker-input-icon.png - 304 Not Modified (18ms)
38969
+
38970
+
38971
+ Started GET "/admin/qwester_rule_sets/2/edit" for 127.0.0.1 at 2013-01-29 13:33:57 +0000
38972
+ Processing by Admin::QwesterRuleSetsController#edit as HTML
38973
+ Parameters: {"id"=>"2"}
38974
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
38975
+ Qwester::RuleSet Load (0.2ms) SELECT "qwester_rule_sets".* FROM "qwester_rule_sets" WHERE "qwester_rule_sets"."id" = ? LIMIT 1 [["id", "2"]]
38976
+  (0.2ms) SELECT COUNT(*) FROM "qwester_questions" INNER JOIN "qwester_answers" ON "qwester_questions"."id" = "qwester_answers"."question_id" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2
38977
+ Qwester::Question Load (0.2ms) SELECT "qwester_questions".* FROM "qwester_questions" 
38978
+ Qwester::Question Load (0.3ms) SELECT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_answers" ON "qwester_questions"."id" = "qwester_answers"."question_id" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2
38979
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 4 ORDER BY position
38980
+ Qwester::Answer Exists (0.4ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 8 LIMIT 1
38981
+ Qwester::Answer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 9 LIMIT 1
38982
+ Qwester::Answer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 10 LIMIT 1
38983
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 2 ORDER BY position
38984
+ Qwester::Answer Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 1 LIMIT 1
38985
+ Qwester::Answer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 2 LIMIT 1
38986
+ Qwester::Answer Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 4 LIMIT 1
38987
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 3 ORDER BY position
38988
+ Qwester::Answer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 5 LIMIT 1
38989
+ Qwester::Answer Exists (0.1ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 6 LIMIT 1
38990
+ Qwester::Answer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2 AND "qwester_answers"."id" = 7 LIMIT 1
38991
+ DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from block (2 levels) in <module:Qwester> at /home/rob/web/qwester/lib/active_admin/admin/rule_sets.rb:112)
38992
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (395.1ms)
38993
+ Completed 200 OK in 417ms (Views: 409.2ms | ActiveRecord: 3.9ms)
38994
+
38995
+
38996
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-01-29 13:33:58 +0000
38997
+ Served asset /active_admin.css - 304 Not Modified (21ms)
38998
+ Connecting to database specified by database.yml
38999
+
39000
+
39001
+ Started PUT "/admin/qwester_rule_sets/2" for 127.0.0.1 at 2013-01-29 13:34:52 +0000
39002
+ Processing by Admin::QwesterRuleSetsController#update as HTML
39003
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"5I0P44KhuL0XtHIsexLjc9SaUEYWAb17BDnU9GThMz0=", "qwester_rule_set"=>{"title"=>"Rule two", "description"=>"This is a description", "url"=>"http://google.co.uk", "link_text"=>"Link to google", "rule"=>"not a10"}, "commit"=>"Update Rule set", "id"=>"2"}
39004
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
39005
+ Qwester::RuleSet Load (0.2ms) SELECT "qwester_rule_sets".* FROM "qwester_rule_sets" WHERE "qwester_rule_sets"."id" = ? LIMIT 1 [["id", "2"]]
39006
+  (0.1ms) begin transaction
39007
+ Qwester::Answer Load (52.6ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."id" = ? LIMIT 1 [["id", 10]]
39008
+ Qwester::Answer Load (0.4ms) SELECT DISTINCT "qwester_answers".* FROM "qwester_answers" INNER JOIN "qwester_answers_rule_sets" ON "qwester_answers"."id" = "qwester_answers_rule_sets"."answer_id" WHERE "qwester_answers_rule_sets"."rule_set_id" = 2
39009
+  (1.3ms) UPDATE "qwester_rule_sets" SET "link_text" = 'Link to google', "updated_at" = '2013-01-29 13:34:53.382882' WHERE "qwester_rule_sets"."id" = 2
39010
+  (146.3ms) commit transaction
39011
+ Redirected to http://localhost:3000/admin/qwester_rule_sets/2
39012
+ Completed 302 Found in 564ms (ActiveRecord: 0.0ms)
39013
+
39014
+
39015
+ Started GET "/admin/qwester_rule_sets/2" for 127.0.0.1 at 2013-01-29 13:34:53 +0000
39016
+ Processing by Admin::QwesterRuleSetsController#show as HTML
39017
+ Parameters: {"id"=>"2"}
39018
+ AdminUser Load (0.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
39019
+ Qwester::RuleSet Load (0.2ms) SELECT "qwester_rule_sets".* FROM "qwester_rule_sets" WHERE "qwester_rule_sets"."id" = ? LIMIT 1 [["id", "2"]]
39020
+ Qwester::Answer Exists (1.2ms) SELECT 1 AS one FROM "qwester_answers" WHERE "qwester_answers"."id" = 10 LIMIT 1
39021
+ Qwester::Answer Load (0.1ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."id" = ? LIMIT 1 [["id", 10]]
39022
+ Qwester::Question Load (0.2ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = 4 LIMIT 1
39023
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (312.1ms)
39024
+ Completed 200 OK in 339ms (Views: 325.5ms | ActiveRecord: 2.4ms)
39025
+
39026
+
39027
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-01-29 13:34:54 +0000
39028
+ Served asset /active_admin.css - 304 Not Modified (21ms)