page_engine 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/README.markdown +14 -0
  2. data/app/assets/stylesheets/{jquery-ui/smoothness/jquery-ui-1.8.15.custom.css → jquery-ui.css} +17 -17
  3. data/app/assets/stylesheets/page_engine.css +1 -0
  4. data/lib/generators/page_engine/page_engine_generator.rb +1 -0
  5. data/lib/page_engine.rb +1 -1
  6. data/spec/dummy/Rakefile +7 -0
  7. data/spec/dummy/app/assets/javascripts/application.js +11 -0
  8. data/spec/dummy/app/assets/stylesheets/application.css +8 -0
  9. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  10. data/spec/dummy/app/controllers/welcome_controller.rb +5 -0
  11. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  12. data/spec/dummy/app/views/layouts/application.html.haml +25 -0
  13. data/spec/dummy/app/views/welcome/index.html.haml +5 -0
  14. data/spec/dummy/config.ru +4 -0
  15. data/spec/dummy/config/application.rb +42 -0
  16. data/spec/dummy/config/boot.rb +10 -0
  17. data/spec/dummy/config/database.yml +25 -0
  18. data/spec/dummy/config/environment.rb +5 -0
  19. data/spec/dummy/config/environments/development.rb +27 -0
  20. data/spec/dummy/config/environments/production.rb +51 -0
  21. data/spec/dummy/config/environments/test.rb +39 -0
  22. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  23. data/spec/dummy/config/initializers/inflections.rb +10 -0
  24. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  25. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  26. data/spec/dummy/config/initializers/session_store.rb +8 -0
  27. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  28. data/spec/dummy/config/locales/en.yml +5 -0
  29. data/spec/dummy/config/routes.rb +58 -0
  30. data/spec/dummy/db/development.sqlite3 +0 -0
  31. data/spec/dummy/db/schema.rb +78 -0
  32. data/spec/dummy/db/test.sqlite3 +0 -0
  33. data/spec/dummy/log/development.log +215 -0
  34. data/spec/dummy/log/test.log +141 -0
  35. data/spec/dummy/public/404.html +26 -0
  36. data/spec/dummy/public/422.html +26 -0
  37. data/spec/dummy/public/500.html +26 -0
  38. data/spec/dummy/public/favicon.ico +0 -0
  39. data/spec/dummy/script/rails +6 -0
  40. data/spec/dummy/tmp/cache/assets/C50/9E0/sprockets%2F5273207c05e438fab77180339ef07418 +0 -0
  41. data/spec/dummy/tmp/cache/assets/CE7/5E0/sprockets%2F520141de9bf7351de829ee484b761d37 +0 -0
  42. data/spec/dummy/tmp/cache/assets/CF3/CF0/sprockets%2Fb9232c5dfbe22949e8559fc03898242e +0 -0
  43. data/spec/dummy/tmp/cache/assets/D10/500/sprockets%2F14244cebaa065f6e0c461f88521d89e7 +0 -0
  44. data/spec/dummy/tmp/cache/assets/D1B/490/sprockets%2Fe37c84afab109b736f593d271f94916c +0 -0
  45. data/spec/dummy/tmp/cache/assets/D22/630/sprockets%2F96268b95a26ee16a7b2d169e78af38c4 +0 -0
  46. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  47. data/spec/dummy/tmp/cache/assets/D35/4A0/sprockets%2F1b20d80f1d472f213983c30fc7a8d8ad +0 -0
  48. data/spec/dummy/tmp/cache/assets/D40/A70/sprockets%2Fffa6c67811911b1a6624281ce7e7dea6 +0 -0
  49. data/spec/dummy/tmp/cache/assets/D4D/6A0/sprockets%2F34ff66b81d54df8b855b5ad0609d384f +0 -0
  50. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  51. data/spec/dummy/tmp/cache/assets/D58/450/sprockets%2F9bdf9046afa29f99222ffadf85572089 +0 -0
  52. data/spec/dummy/tmp/cache/assets/D59/BE0/sprockets%2Fb60619702caaaa748c6404a3a05fa7fc +0 -0
  53. data/spec/dummy/tmp/cache/assets/D69/7E0/sprockets%2F95dc7c01f25afc8afc40e4353395cb15 +0 -0
  54. data/spec/dummy/tmp/cache/assets/D70/280/sprockets%2F99a543e2b6be1d37c3ccc8a90261f87a +0 -0
  55. data/spec/dummy/tmp/cache/assets/D76/270/sprockets%2F7fa38bbc51591249e64f86df7da17d0a +0 -0
  56. data/spec/dummy/tmp/cache/assets/D7A/710/sprockets%2F082db977dca9043b3cf64dd7b9a1799b +0 -0
  57. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  58. data/spec/dummy/tmp/cache/assets/D96/510/sprockets%2F400b6fa7eb374fe27379be14bfb5ad13 +0 -0
  59. data/spec/dummy/tmp/cache/assets/DAF/F20/sprockets%2Ffefb6dc410d3c50be89565fb3e8e3788 +0 -0
  60. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  61. data/spec/dummy/tmp/cache/assets/E59/310/sprockets%2Fbc56e556d3e7aae7c8bf341d3dcea2bd +0 -0
  62. data/spec/dummy/tmp/cache/assets/E70/2B0/sprockets%2F7eedcfada8bf8bff28c96d9ea93521d3 +0 -0
  63. data/spec/models/page_spec.rb +48 -0
  64. data/spec/spec_helper.rb +15 -0
  65. metadata +139 -15
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '4e5594f2d1fe6e6fb70310baf9061e42dab23f2e6fb16ed7ada800a341911acde7f2acf0ef5da3d31deb1a4cd3c5e85c127c08627a77c32c6d07932a607c1210'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActionController::Base.wrap_parameters format: [:json]
8
+
9
+ # Disable root element in JSON by default.
10
+ if defined?(ActiveRecord)
11
+ ActiveRecord::Base.include_root_in_json = false
12
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
Binary file
@@ -0,0 +1,78 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20110814185929) do
15
+
16
+ create_table "page_parts", :force => true do |t|
17
+ t.string "title"
18
+ t.text "content"
19
+ t.integer "page_id"
20
+ t.string "filter"
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
+ end
24
+
25
+ create_table "page_roles", :force => true do |t|
26
+ t.integer "page_id"
27
+ t.integer "required_role_id"
28
+ t.integer "excluded_role_id"
29
+ end
30
+
31
+ create_table "page_snippets", :force => true do |t|
32
+ t.string "name"
33
+ t.string "filter"
34
+ t.text "content"
35
+ t.datetime "created_at"
36
+ t.datetime "updated_at"
37
+ end
38
+
39
+ add_index "page_snippets", ["name"], :name => "index_page_snippets_on_name"
40
+
41
+ create_table "pages", :force => true do |t|
42
+ t.string "title"
43
+ t.text "meta_description"
44
+ t.text "meta_keywords"
45
+ t.string "status"
46
+ t.datetime "publish_from"
47
+ t.datetime "publish_to"
48
+ t.integer "created_by"
49
+ t.string "permalink"
50
+ t.string "url"
51
+ t.boolean "display_in_menu", :default => true
52
+ t.boolean "display_in_sitemap", :default => true
53
+ t.string "menu_css_class"
54
+ t.boolean "no_link", :default => false
55
+ t.string "controller"
56
+ t.string "action"
57
+ t.string "layout"
58
+ t.text "js"
59
+ t.text "css"
60
+ t.integer "parent_id"
61
+ t.integer "lft"
62
+ t.integer "rgt"
63
+ t.string "authorable_type"
64
+ t.integer "authorable_id"
65
+ t.datetime "created_at"
66
+ t.datetime "updated_at"
67
+ end
68
+
69
+ add_index "pages", ["controller", "action"], :name => "index_pages_on_controller_and_action"
70
+ add_index "pages", ["permalink"], :name => "index_pages_on_permalink"
71
+ add_index "pages", ["url"], :name => "index_pages_on_url"
72
+
73
+ create_table "pages_roles", :id => false, :force => true do |t|
74
+ t.integer "page_id"
75
+ t.integer "role_id"
76
+ end
77
+
78
+ end
Binary file
@@ -0,0 +1,215 @@
1
+  (0.1ms) select sqlite_version(*)
2
+  (99.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.1ms) PRAGMA index_list("schema_migrations")
4
+  (105.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreatePageEngine (20110814185929)
7
+  (0.6ms) CREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "meta_description" text, "meta_keywords" text, "status" varchar(255), "publish_from" datetime, "publish_to" datetime, "created_by" integer, "permalink" varchar(255), "url" varchar(255), "display_in_menu" boolean DEFAULT 't', "display_in_sitemap" boolean DEFAULT 't', "menu_css_class" varchar(255), "no_link" boolean DEFAULT 'f', "controller" varchar(255), "action" varchar(255), "layout" varchar(255), "js" text, "css" text, "parent_id" integer, "lft" integer, "rgt" integer, "authorable_type" varchar(255), "authorable_id" integer, "created_at" datetime, "updated_at" datetime)
8
+  (0.2ms) CREATE TABLE "page_parts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "page_id" integer, "filter" varchar(255), "created_at" datetime, "updated_at" datetime) 
9
+  (0.1ms) CREATE TABLE "pages_roles" ("page_id" integer, "role_id" integer)
10
+  (0.2ms) CREATE TABLE "page_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "filter" varchar(255), "content" text, "created_at" datetime, "updated_at" datetime) 
11
+  (0.2ms) CREATE TABLE "page_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "required_role_id" integer, "excluded_role_id" integer)
12
+  (0.0ms) PRAGMA index_list("pages")
13
+  (0.3ms) CREATE INDEX "index_pages_on_permalink" ON "pages" ("permalink")
14
+  (0.1ms) PRAGMA index_list("pages")
15
+  (0.1ms) PRAGMA index_info('index_pages_on_permalink')
16
+  (0.3ms) CREATE INDEX "index_pages_on_controller_and_action" ON "pages" ("controller", "action")
17
+  (0.1ms) PRAGMA index_list("pages")
18
+  (0.1ms) PRAGMA index_info('index_pages_on_controller_and_action')
19
+  (0.1ms) PRAGMA index_info('index_pages_on_permalink')
20
+  (0.2ms) CREATE INDEX "index_pages_on_url" ON "pages" ("url")
21
+  (0.1ms) PRAGMA index_list("page_snippets")
22
+  (0.2ms) CREATE INDEX "index_page_snippets_on_name" ON "page_snippets" ("name")
23
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110814185929')
24
+  (0.4ms) select sqlite_version(*)
25
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
26
+  (0.0ms) PRAGMA index_list("page_parts")
27
+  (0.0ms) PRAGMA index_list("page_roles")
28
+  (0.0ms) PRAGMA index_list("page_snippets")
29
+  (0.0ms) PRAGMA index_info('index_page_snippets_on_name')
30
+  (0.0ms) PRAGMA index_list("pages")
31
+  (0.0ms) PRAGMA index_info('index_pages_on_url')
32
+  (0.0ms) PRAGMA index_info('index_pages_on_controller_and_action')
33
+  (0.1ms) PRAGMA index_info('index_pages_on_permalink')
34
+  (0.0ms) PRAGMA index_list("pages_roles")
35
+
36
+
37
+ Started GET "/admin/pages/" for 127.0.0.1 at 2011-08-24 20:50:18 +0100
38
+ DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Page> at /home/mark/dev/personal/page_engine/app/models/page.rb:2)
39
+ Processing by Admin::PagesController#index as HTML
40
+ Page Load (0.3ms) SELECT "pages".* FROM "pages" ORDER BY lft
41
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page.html.haml (17.5ms)
42
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/index.html.haml within layouts/admin (35.0ms)
43
+ Completed 200 OK in 156ms (Views: 98.8ms | ActiveRecord: 0.5ms)
44
+
45
+
46
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-24 20:50:18 +0100
47
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/page_engine.css (11ms) (pid 9966)
48
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/jquery-ui.css (0ms) (pid 9966)
49
+ Error compiling asset application.css:
50
+ Sprockets::FileNotFound: couldn't find file 'jquery-ui/smoothness/jquery-ui-1.8.15.custom'
51
+ (in /home/mark/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css:7)
52
+ Served asset /application.css - 500 Internal Server Error
53
+
54
+
55
+
56
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-24 20:50:19 +0100
57
+ Served asset /application.js - 200 OK (88ms)
58
+
59
+
60
+ Started GET "/admin/pages/" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
61
+ DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Page> at /home/mark/dev/personal/page_engine/app/models/page.rb:2)
62
+ Processing by Admin::PagesController#index as HTML
63
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" ORDER BY lft
64
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page.html.haml (3.5ms)
65
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/index.html.haml within layouts/admin (41.0ms)
66
+ Completed 200 OK in 70ms (Views: 46.7ms | ActiveRecord: 0.4ms)
67
+
68
+
69
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
70
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css (2ms) (pid 9966)
71
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css (0ms) (pid 9966)
72
+ Served asset /application.css - 200 OK (17ms)
73
+
74
+
75
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
76
+ Served asset /application.js - 304 Not Modified (0ms)
77
+
78
+
79
+ Started GET "/assets/page_engine/page_red.png" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
80
+ Served asset /page_engine/page_red.png - 304 Not Modified (14ms)
81
+
82
+
83
+ Started GET "/assets/page_engine/page_add.png" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
84
+ Served asset /page_engine/page_add.png - 304 Not Modified (6ms)
85
+
86
+
87
+ Started GET "/assets/page_engine/page_edit.png" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
88
+ Served asset /page_engine/page_edit.png - 304 Not Modified (9ms)
89
+
90
+
91
+ Started GET "/assets/page_engine/page_delete.png" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
92
+ Served asset /page_engine/page_delete.png - 304 Not Modified (2ms)
93
+
94
+
95
+ Started GET "/assets/page_engine/page_copy.png" for 127.0.0.1 at 2011-08-24 20:51:09 +0100
96
+ Served asset /page_engine/page_copy.png - 304 Not Modified (2ms)
97
+
98
+
99
+ Started GET "/admin/pages/test/edit" for 127.0.0.1 at 2011-08-24 20:51:36 +0100
100
+ DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Page> at /home/mark/dev/personal/page_engine/app/models/page.rb:2)
101
+ Processing by Admin::PagesController#edit as HTML
102
+ Parameters: {"id"=>"test"}
103
+ Page Load (0.2ms) SELECT controller || '|' || action as taken FROM "pages" GROUP BY taken
104
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."permalink" = 'test' LIMIT 1
105
+ PagePart Load (0.3ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."page_id" IN (1)
106
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (13.9ms)
107
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (12.0ms)
108
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (11.5ms)
109
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (11.1ms)
110
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (47.6ms)
111
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (11.1ms)
112
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_form.html.haml (635.9ms)
113
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/edit.html.haml within layouts/admin (640.4ms)
114
+ Completed 200 OK in 796ms (Views: 647.3ms | ActiveRecord: 1.4ms)
115
+
116
+
117
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-24 20:51:37 +0100
118
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/page_engine.css (11ms) (pid 9966)
119
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css (2ms) (pid 9966)
120
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css (0ms) (pid 9966)
121
+ Served asset /application.css - 200 OK (32ms)
122
+
123
+
124
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-24 20:51:37 +0100
125
+ Served asset /application.js - 304 Not Modified (0ms)
126
+
127
+
128
+ Started GET "/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100.png" for 127.0.0.1 at 2011-08-24 20:51:38 +0100
129
+ Served asset /jquery-ui/ui-bg_flat_75_ffffff_40x100.png - 200 OK (10ms)
130
+
131
+
132
+ Started GET "/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400.png" for 127.0.0.1 at 2011-08-24 20:51:38 +0100
133
+ Served asset /jquery-ui/ui-bg_glass_65_ffffff_1x400.png - 200 OK (3ms)
134
+
135
+
136
+ Started GET "/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png" for 127.0.0.1 at 2011-08-24 20:51:38 +0100
137
+ Served asset /jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png - 200 OK (4ms)
138
+
139
+
140
+ Started GET "/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png" for 127.0.0.1 at 2011-08-24 20:51:38 +0100
141
+ Served asset /jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png - 200 OK (4ms)
142
+
143
+
144
+ Started GET "/admin/pages/test-2/edit" for 127.0.0.1 at 2011-08-24 20:56:53 +0100
145
+ DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Page> at /home/mark/dev/personal/page_engine/app/models/page.rb:2)
146
+ Processing by Admin::PagesController#edit as HTML
147
+ Parameters: {"id"=>"test-2"}
148
+ Page Load (0.3ms) SELECT controller || '|' || action as taken FROM "pages" GROUP BY taken
149
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."permalink" = 'test-2' LIMIT 1
150
+ Completed 500 Internal Server Error in 73ms
151
+
152
+ NoMethodError (undefined method `parent' for nil:NilClass):
153
+
154
+
155
+ Rendered /home/mark/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
156
+ Rendered /home/mark/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
157
+ Rendered /home/mark/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.2ms)
158
+
159
+
160
+ Started GET "/admin/" for 127.0.0.1 at 2011-08-24 20:56:58 +0100
161
+ DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Page> at /home/mark/dev/personal/page_engine/app/models/page.rb:2)
162
+ Processing by Admin::PagesController#index as HTML
163
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" ORDER BY lft
164
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page.html.haml (17.7ms)
165
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/index.html.haml within layouts/admin (35.3ms)
166
+ Completed 200 OK in 70ms (Views: 45.7ms | ActiveRecord: 0.5ms)
167
+
168
+
169
+ Started GET "/assets/application.css" for 127.0.0.1 at 2011-08-24 20:56:58 +0100
170
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css (2ms) (pid 10157)
171
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/page_engine.css (22ms) (pid 10157)
172
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/jquery-ui.css (0ms) (pid 10157)
173
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/markitup/skins/simple/style.css (0ms) (pid 10157)
174
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/markitup/sets/html/style.css (0ms) (pid 10157)
175
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/markitup/sets/textile/style.css (0ms) (pid 10157)
176
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/markitup/sets/markdown/style.css (0ms) (pid 10157)
177
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/markitup/sets/css/style.css (0ms) (pid 10157)
178
+ Compiled ~/dev/personal/page_engine/app/assets/stylesheets/markitup/sets/javascript/style.css (0ms) (pid 10157)
179
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/stylesheets/application.css (0ms) (pid 10157)
180
+ Served asset /application.css - 200 OK (100ms)
181
+
182
+
183
+ Started GET "/assets/application.js" for 127.0.0.1 at 2011-08-24 20:56:59 +0100
184
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/javascripts/application.js (5ms) (pid 10157)
185
+ Compiled ~/.rvm/gems/ruby-1.9.2-p180/gems/jquery-rails-1.0.13/vendor/assets/javascripts/jquery.js (1ms) (pid 10157)
186
+ Compiled ~/.rvm/gems/ruby-1.9.2-p180/gems/jquery-rails-1.0.13/vendor/assets/javascripts/jquery_ujs.js (0ms) (pid 10157)
187
+ Compiled ~/dev/personal/page_engine/app/assets/javascripts/page_engine.js (12ms) (pid 10157)
188
+ Compiled ~/dev/personal/page_engine/vendor/assets/javascripts/jquery-ui-1.8.15.custom.min.js (0ms) (pid 10157)
189
+ Compiled ~/dev/personal/page_engine/vendor/assets/javascripts/jquery.markitup.js (0ms) (pid 10157)
190
+ Compiled ~/dev/personal/page_engine/app/assets/javascripts/markitup/sets/html/set.js (0ms) (pid 10157)
191
+ Compiled ~/dev/personal/page_engine/app/assets/javascripts/markitup/sets/textile/set.js (0ms) (pid 10157)
192
+ Compiled ~/dev/personal/page_engine/app/assets/javascripts/markitup/sets/markdown/set.js (0ms) (pid 10157)
193
+ Compiled ~/dev/personal/page_engine/app/assets/javascripts/markitup/sets/css/set.js (0ms) (pid 10157)
194
+ Compiled ~/dev/personal/page_engine/app/assets/javascripts/markitup/sets/javascript/set.js (0ms) (pid 10157)
195
+ Compiled ~/dev/personal/page_engine/vendor/assets/javascripts/jquery.ui.nestedSortable.js (0ms) (pid 10157)
196
+ Compiled ~/dev/personal/page_engine/spec/dummy/app/assets/javascripts/application.js (0ms) (pid 10157)
197
+ Served asset /application.js - 200 OK (143ms)
198
+
199
+
200
+ Started GET "/admin/pages/test/edit" for 127.0.0.1 at 2011-08-24 20:57:01 +0100
201
+ DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from <class:Page> at /home/mark/dev/personal/page_engine/app/models/page.rb:2)
202
+ Processing by Admin::PagesController#edit as HTML
203
+ Parameters: {"id"=>"test"}
204
+ Page Load (0.2ms) SELECT controller || '|' || action as taken FROM "pages" GROUP BY taken
205
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" WHERE "pages"."permalink" = 'test' LIMIT 1
206
+ PagePart Load (0.2ms) SELECT "page_parts".* FROM "page_parts" WHERE "page_parts"."page_id" IN (1)
207
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (13.5ms)
208
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (11.5ms)
209
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (11.3ms)
210
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (12.6ms)
211
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (54.1ms)
212
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_page_part_fields.html.haml (12.5ms)
213
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/_form.html.haml (635.6ms)
214
+ Rendered /home/mark/dev/personal/page_engine/app/views/admin/pages/edit.html.haml within layouts/admin (640.3ms)
215
+ Completed 200 OK in 783ms (Views: 646.5ms | ActiveRecord: 1.2ms)
@@ -0,0 +1,141 @@
1
+  (0.1ms) select sqlite_version(*)
2
+  (124.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.1ms) PRAGMA index_list("schema_migrations")
4
+  (87.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreatePageEngine (20110814185929)
7
+  (0.6ms) CREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "meta_description" text, "meta_keywords" text, "status" varchar(255), "publish_from" datetime, "publish_to" datetime, "created_by" integer, "permalink" varchar(255), "url" varchar(255), "display_in_menu" boolean DEFAULT 't', "display_in_sitemap" boolean DEFAULT 't', "menu_css_class" varchar(255), "no_link" boolean DEFAULT 'f', "controller" varchar(255), "action" varchar(255), "layout" varchar(255), "js" text, "css" text, "parent_id" integer, "lft" integer, "rgt" integer, "authorable_type" varchar(255), "authorable_id" integer, "created_at" datetime, "updated_at" datetime)
8
+  (0.2ms) CREATE TABLE "page_parts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "page_id" integer, "filter" varchar(255), "created_at" datetime, "updated_at" datetime) 
9
+  (0.1ms) CREATE TABLE "pages_roles" ("page_id" integer, "role_id" integer)
10
+  (0.2ms) CREATE TABLE "page_snippets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "filter" varchar(255), "content" text, "created_at" datetime, "updated_at" datetime) 
11
+  (0.2ms) CREATE TABLE "page_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "required_role_id" integer, "excluded_role_id" integer)
12
+  (0.0ms) PRAGMA index_list("pages")
13
+  (0.1ms) CREATE INDEX "index_pages_on_permalink" ON "pages" ("permalink")
14
+  (0.0ms) PRAGMA index_list("pages")
15
+  (0.0ms) PRAGMA index_info('index_pages_on_permalink')
16
+  (0.1ms) CREATE INDEX "index_pages_on_controller_and_action" ON "pages" ("controller", "action")
17
+  (0.1ms) PRAGMA index_list("pages")
18
+  (0.1ms) PRAGMA index_info('index_pages_on_controller_and_action')
19
+  (0.1ms) PRAGMA index_info('index_pages_on_permalink')
20
+  (0.2ms) CREATE INDEX "index_pages_on_url" ON "pages" ("url")
21
+  (0.0ms) PRAGMA index_list("page_snippets")
22
+  (0.2ms) CREATE INDEX "index_page_snippets_on_name" ON "page_snippets" ("name")
23
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110814185929')
24
+  (0.4ms) select sqlite_version(*)
25
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
26
+  (0.0ms) PRAGMA index_list("page_parts")
27
+  (0.0ms) PRAGMA index_list("page_roles")
28
+  (0.0ms) PRAGMA index_list("page_snippets")
29
+  (0.0ms) PRAGMA index_info('index_page_snippets_on_name')
30
+  (0.1ms) PRAGMA index_list("pages")
31
+  (0.0ms) PRAGMA index_info('index_pages_on_url')
32
+  (0.0ms) PRAGMA index_info('index_pages_on_controller_and_action')
33
+  (0.0ms) PRAGMA index_info('index_pages_on_permalink')
34
+  (0.0ms) PRAGMA index_list("pages_roles")
35
+  (0.1ms) SAVEPOINT active_record_1
36
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
37
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
38
+ SQL (6.2ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["url", nil]]
39
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40
+  (0.0ms) SAVEPOINT active_record_1
41
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
42
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
43
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["url", nil]]
44
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45
+  (0.3ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
46
+  (0.0ms) SAVEPOINT active_record_1
47
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
48
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
49
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["url", nil]]
50
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51
+  (0.1ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
52
+  (0.0ms) SAVEPOINT active_record_1
53
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
54
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
55
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:55:04 UTC +00:00], ["url", nil]]
56
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
58
+  (0.1ms) SAVEPOINT active_record_1
59
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
60
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
61
+ SQL (6.1ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["url", nil]]
62
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63
+  (0.0ms) SAVEPOINT active_record_1
64
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
65
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
66
+ SQL (1.7ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["url", nil]]
67
+  (0.1ms) RELEASE SAVEPOINT active_record_1
68
+  (0.1ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
69
+  (0.0ms) SAVEPOINT active_record_1
70
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
71
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
72
+ SQL (1.7ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["url", nil]]
73
+  (0.1ms) RELEASE SAVEPOINT active_record_1
74
+  (0.1ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
75
+  (0.0ms) SAVEPOINT active_record_1
76
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
77
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
78
+ SQL (1.9ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:56:47 UTC +00:00], ["url", nil]]
79
+  (0.1ms) RELEASE SAVEPOINT active_record_1
80
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
81
+  (0.1ms) SAVEPOINT active_record_1
82
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
83
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
84
+ SQL (6.0ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["url", nil]]
85
+  (0.1ms) RELEASE SAVEPOINT active_record_1
86
+  (0.0ms) SAVEPOINT active_record_1
87
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
88
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
89
+ SQL (1.7ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["url", nil]]
90
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91
+  (0.0ms) SAVEPOINT active_record_1
92
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
93
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
94
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["url", nil]]
95
+  (0.1ms) RELEASE SAVEPOINT active_record_1
96
+  (0.1ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
97
+  (0.0ms) SAVEPOINT active_record_1
98
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
99
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
100
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["url", nil]]
101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
102
+  (0.1ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
103
+  (0.0ms) SAVEPOINT active_record_1
104
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
105
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
106
+ SQL (1.7ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 22:59:41 UTC +00:00], ["url", nil]]
107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
109
+  (0.1ms) SAVEPOINT active_record_1
110
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
111
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
112
+ SQL (6.1ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["url", nil]]
113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
114
+  (0.0ms) SAVEPOINT active_record_1
115
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
116
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
117
+ SQL (1.7ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["url", nil]]
118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
119
+  (0.0ms) SAVEPOINT active_record_1
120
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
121
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages" 
122
+ SQL (1.7ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["url", nil]]
123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
124
+  (0.0ms) SAVEPOINT active_record_1
125
+  (0.1ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
126
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
127
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["url", nil]]
128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
129
+  (0.2ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
130
+  (0.0ms) SAVEPOINT active_record_1
131
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
132
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
133
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["url", nil]]
134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135
+  (0.1ms) SELECT 1 FROM "pages" WHERE ("pages"."permalink" = 'a-topic' AND "pages"."id" != 1) LIMIT 1
136
+  (0.2ms) SAVEPOINT active_record_1
137
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1
138
+  (0.1ms) SELECT MAX("pages"."rgt") AS max_id FROM "pages"
139
+ SQL (1.8ms) INSERT INTO "pages" ("action", "authorable_id", "authorable_type", "controller", "created_at", "created_by", "css", "display_in_menu", "display_in_sitemap", "js", "layout", "lft", "menu_css_class", "meta_description", "meta_keywords", "no_link", "parent_id", "permalink", "publish_from", "publish_to", "rgt", "status", "title", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["authorable_id", nil], ["authorable_type", nil], ["controller", nil], ["created_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["created_by", nil], ["css", nil], ["display_in_menu", true], ["display_in_sitemap", true], ["js", nil], ["layout", nil], ["lft", 1], ["menu_css_class", "a-topic"], ["meta_description", nil], ["meta_keywords", nil], ["no_link", false], ["parent_id", nil], ["permalink", "a-topic"], ["publish_from", nil], ["publish_to", nil], ["rgt", 2], ["status", nil], ["title", "A topic"], ["updated_at", Tue, 23 Aug 2011 23:01:58 UTC +00:00], ["url", nil]]
140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141
+  (0.2ms) SELECT 1 FROM "pages" WHERE "pages"."permalink" = 'a-topic' LIMIT 1