amalgam 2.1.3.1 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,9 @@ module Amalgam
9
9
  end
10
10
  end
11
11
 
12
+ mattr_accessor :accepted_formats
13
+ @@accepted_formats = [".haml", ".erb"]
14
+
12
15
  mattr_accessor :admin_menus
13
16
  @@admin_menus = {}
14
17
 
@@ -10,7 +10,7 @@ module Amalgam
10
10
  attr_accessor :prev_id,:next_id
11
11
 
12
12
  validates :title, :slug, :presence => true
13
- validates_uniqueness_of :slug, :scope => :parent_id
13
+ validates_uniqueness_of :slug
14
14
  validates_with Amalgam::Validator::Slug
15
15
 
16
16
  default_scope order('lft ASC')
@@ -11,7 +11,7 @@ module Amalgam
11
11
  @@rules[model] = []
12
12
  path = "#{root}/app/views/#{model.tableize}/"
13
13
  Find.find(path).each do |p|
14
- if File.file?(p)
14
+ if File.file?(p) && Amalgam.accepted_formats.include?(File.extname(p))
15
15
  p.slice!(path)
16
16
  list = p.split('/')
17
17
  list[list.length-1] = list.last.split('.').first
@@ -1,3 +1,3 @@
1
1
  module Amalgam
2
- VERSION = "2.1.3.1"
2
+ VERSION = "2.1.4"
3
3
  end
File without changes
Binary file
@@ -340965,3 +340965,769 @@ Served asset /amalgam/admin/tree.js - 304 Not Modified (0ms)
340965
340965
 
340966
340966
  Started GET "/assets/amalgam/admin.js?body=1" for 127.0.0.1 at 2013-01-21 16:34:37 +0800
340967
340967
  Served asset /amalgam/admin.js - 304 Not Modified (1ms)
340968
+ Connecting to database specified by database.yml
340969
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
340970
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
340971
+
340972
+
340973
+ Started GET "/" for 127.0.0.1 at 2013-02-04 16:07:01 +0800
340974
+ Processing by PagesController#show as HTML
340975
+ Parameters: {"slug"=>"home"}
340976
+ Page Load (0.6ms) SELECT "pages".* FROM "pages" WHERE "pages"."slug" = 'home' ORDER BY lft ASC LIMIT 1
340977
+ Completed 500 Internal Server Error in 23ms
340978
+
340979
+ ActiveRecord::RecordNotFound (Couldn't find page with PATH=home):
340980
+ app/controllers/pages_controller.rb:7:in `show'
340981
+
340982
+
340983
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
340984
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.7ms)
340985
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.3ms)
340986
+
340987
+
340988
+ Started GET "/admin" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
340989
+ Processing by Amalgam::Admin::PagesController#index as HTML
340990
+ Redirected to http://amalgam.dev/admin_user/signin?locale=zh-CN
340991
+ Filter chain halted as :authenticate_admin! rendered or redirected
340992
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
340993
+
340994
+
340995
+ Started GET "/admin_user/signin?locale=zh-CN" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
340996
+ Processing by Amalgam::SessionsController#new as HTML
340997
+ Parameters: {"locale"=>"zh-CN", "resource"=>"admin_user"}
340998
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/sessions/new.html.haml within layouts/amalgam/admin/login (10.0ms)
340999
+ Completed 200 OK in 109ms (Views: 100.5ms | ActiveRecord: 0.3ms)
341000
+
341001
+
341002
+ Started GET "/assets/amalgam/extra.css?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341003
+ Served asset /amalgam/extra.css - 200 OK (2ms)
341004
+
341005
+
341006
+ Started GET "/assets/amalgam/admin.css?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341007
+ Served asset /amalgam/admin.css - 200 OK (31ms)
341008
+
341009
+
341010
+ Started GET "/assets/amalgam/admin/layout.css?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341011
+ Served asset /amalgam/admin/layout.css - 200 OK (3ms)
341012
+
341013
+
341014
+ Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341015
+ Served asset /modernizr.js - 200 OK (6ms)
341016
+
341017
+
341018
+ Started GET "/assets/jquery.ui.core.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341019
+ Served asset /jquery.ui.core.js - 200 OK (6ms)
341020
+
341021
+
341022
+ Started GET "/assets/jquery.ui.mouse.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341023
+ Served asset /jquery.ui.mouse.js - 200 OK (47ms)
341024
+
341025
+
341026
+ Started GET "/assets/jquery.ui.sortable.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341027
+ Served asset /jquery.ui.sortable.js - 200 OK (6ms)
341028
+
341029
+
341030
+ Started GET "/assets/jquery.ui.nestedSortable.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341031
+ Served asset /jquery.ui.nestedSortable.js - 200 OK (1ms)
341032
+
341033
+
341034
+ Started GET "/assets/jquery.scrollto.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341035
+ Served asset /jquery.scrollto.js - 200 OK (1ms)
341036
+
341037
+
341038
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341039
+ Served asset /jquery_ujs.js - 200 OK (4ms)
341040
+
341041
+
341042
+ Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341043
+ Served asset /bootstrap-dropdown.js - 200 OK (5ms)
341044
+
341045
+
341046
+ Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341047
+ Served asset /bootstrap-alert.js - 200 OK (5ms)
341048
+
341049
+
341050
+ Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341051
+ Served asset /bootstrap-tooltip.js - 200 OK (3ms)
341052
+
341053
+
341054
+ Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341055
+ Served asset /bootstrap-button.js - 200 OK (4ms)
341056
+
341057
+
341058
+ Started GET "/assets/amalgam/extra.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341059
+ Served asset /amalgam/extra.js - 200 OK (3ms)
341060
+
341061
+
341062
+ Started GET "/assets/amalgam/admin/app.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341063
+ Served asset /amalgam/admin/app.js - 200 OK (2ms)
341064
+
341065
+
341066
+ Started GET "/assets/amalgam/admin/tree.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:05 +0800
341067
+ Served asset /amalgam/admin/tree.js - 200 OK (1ms)
341068
+
341069
+
341070
+ Started GET "/assets/amalgam/admin/popover.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:06 +0800
341071
+ Served asset /amalgam/admin/popover.js - 200 OK (4ms)
341072
+
341073
+
341074
+ Started GET "/assets/amalgam/admin.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:06 +0800
341075
+ Served asset /amalgam/admin.js - 200 OK (16ms)
341076
+ Connecting to database specified by database.yml
341077
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341078
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341079
+
341080
+
341081
+ Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-02-04 16:07:10 +0800
341082
+ Served asset /bootstrap.css - 200 OK (10ms)
341083
+
341084
+
341085
+ Started GET "/assets/amalgam/admin/login.css?body=1" for 127.0.0.1 at 2013-02-04 16:07:10 +0800
341086
+ Served asset /amalgam/admin/login.css - 200 OK (2ms)
341087
+
341088
+
341089
+ Started GET "/assets/amalgam/admin/_mixins.css?body=1" for 127.0.0.1 at 2013-02-04 16:07:10 +0800
341090
+ Served asset /amalgam/admin/_mixins.css - 200 OK (2ms)
341091
+
341092
+
341093
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:10 +0800
341094
+ Served asset /jquery.js - 200 OK (4ms)
341095
+
341096
+
341097
+ Started GET "/assets/jquery.ui.widget.js?body=1" for 127.0.0.1 at 2013-02-04 16:07:10 +0800
341098
+ Served asset /jquery.ui.widget.js - 200 OK (4ms)
341099
+
341100
+
341101
+ Started GET "/assets/amalgam/admin/bg.png" for 127.0.0.1 at 2013-02-04 16:07:10 +0800
341102
+ Served asset /amalgam/admin/bg.png - 200 OK (2ms)
341103
+ Connecting to database specified by database.yml
341104
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341105
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341106
+
341107
+
341108
+ Started GET "/" for 127.0.0.1 at 2013-02-04 16:09:16 +0800
341109
+ Processing by PagesController#show as HTML
341110
+ Parameters: {"slug"=>"home"}
341111
+ AdminUser Load (5.5ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = ? LIMIT 1 [["id", 1]]
341112
+ Page Load (0.6ms) SELECT "pages".* FROM "pages" WHERE "pages"."slug" = 'home' ORDER BY lft ASC LIMIT 1
341113
+ Completed 500 Internal Server Error in 40ms
341114
+
341115
+ ActiveRecord::RecordNotFound (Couldn't find page with PATH=home):
341116
+ app/controllers/pages_controller.rb:7:in `show'
341117
+
341118
+
341119
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
341120
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
341121
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (39.6ms)
341122
+
341123
+
341124
+ Started GET "/admin" for 127.0.0.1 at 2013-02-04 16:09:20 +0800
341125
+ Processing by Amalgam::Admin::PagesController#index as HTML
341126
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = ? LIMIT 1 [["id", 1]]
341127
+ Page Load (0.2ms) SELECT "pages".* FROM "pages" ORDER BY lft ASC
341128
+ Page::Translation Load (0.8ms) SELECT "page_translations".* FROM "page_translations" WHERE "page_translations"."page_id" = 1
341129
+ Amalgam::Models::Group Load (0.3ms) SELECT "groups".* FROM "groups"
341130
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/pages/_fields.html.haml (4.5ms)
341131
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/pages/_tree_inner.html.haml (83.2ms)
341132
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/tree/_list.html.haml (1.4ms)
341133
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/tree/_node.html.haml (88.2ms)
341134
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/tree/_list.html.haml (91.2ms)
341135
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/pages/index.html.haml within layouts/amalgam/admin/application (100.6ms)
341136
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/_nav_bar.html.haml (26.3ms)
341137
+ Completed 200 OK in 377ms (Views: 365.3ms | ActiveRecord: 1.9ms)
341138
+
341139
+
341140
+ Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341141
+ Served asset /bootstrap.css - 200 OK (18ms)
341142
+
341143
+
341144
+ Started GET "/assets/amalgam/extra.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341145
+ Served asset /amalgam/extra.css - 200 OK (1ms)
341146
+
341147
+
341148
+ Started GET "/assets/amalgam/admin/_mixins.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341149
+ Served asset /amalgam/admin/_mixins.css - 200 OK (2ms)
341150
+
341151
+
341152
+ Started GET "/assets/amalgam/admin/login.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341153
+ Served asset /amalgam/admin/login.css - 200 OK (1ms)
341154
+
341155
+
341156
+ Started GET "/assets/amalgam/admin/layout.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341157
+ Served asset /amalgam/admin/layout.css - 200 OK (2ms)
341158
+
341159
+
341160
+ Started GET "/assets/amalgam/admin.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341161
+ Served asset /amalgam/admin.css - 200 OK (13ms)
341162
+
341163
+
341164
+ Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341165
+ Served asset /modernizr.js - 200 OK (3ms)
341166
+
341167
+
341168
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341169
+ Served asset /jquery.js - 200 OK (35ms)
341170
+
341171
+
341172
+ Started GET "/assets/jquery.ui.core.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341173
+ Served asset /jquery.ui.core.js - 200 OK (9ms)
341174
+
341175
+
341176
+ Started GET "/assets/jquery.ui.widget.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341177
+ Served asset /jquery.ui.widget.js - 200 OK (3ms)
341178
+
341179
+
341180
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341181
+ Served asset /jquery_ujs.js - 200 OK (5ms)
341182
+
341183
+
341184
+ Started GET "/assets/jquery.scrollto.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341185
+ Served asset /jquery.scrollto.js - 200 OK (2ms)
341186
+
341187
+
341188
+ Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341189
+ Served asset /bootstrap-alert.js - 200 OK (5ms)
341190
+
341191
+
341192
+ Started GET "/assets/jquery.ui.mouse.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341193
+ Served asset /jquery.ui.mouse.js - 200 OK (16ms)
341194
+
341195
+
341196
+ Started GET "/assets/jquery.ui.sortable.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341197
+ Served asset /jquery.ui.sortable.js - 200 OK (24ms)
341198
+
341199
+
341200
+ Started GET "/assets/jquery.ui.nestedSortable.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341201
+ Served asset /jquery.ui.nestedSortable.js - 200 OK (3ms)
341202
+
341203
+
341204
+ Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341205
+ Served asset /bootstrap-tooltip.js - 200 OK (9ms)
341206
+
341207
+
341208
+ Started GET "/assets/amalgam/admin/popover.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341209
+ Served asset /amalgam/admin/popover.js - 200 OK (4ms)
341210
+
341211
+
341212
+ Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341213
+ Served asset /bootstrap-button.js - 200 OK (4ms)
341214
+
341215
+
341216
+ Started GET "/assets/amalgam/extra.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341217
+ Served asset /amalgam/extra.js - 200 OK (1ms)
341218
+
341219
+
341220
+ Started GET "/assets/amalgam/admin/app.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341221
+ Served asset /amalgam/admin/app.js - 200 OK (1ms)
341222
+
341223
+
341224
+ Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341225
+ Served asset /bootstrap-dropdown.js - 200 OK (4ms)
341226
+
341227
+
341228
+ Started GET "/assets/amalgam/admin/tree.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341229
+ Served asset /amalgam/admin/tree.js - 200 OK (2ms)
341230
+
341231
+
341232
+ Started GET "/assets/amalgam/admin.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341233
+ Served asset /amalgam/admin.js - 200 OK (17ms)
341234
+
341235
+
341236
+ Started GET "/assets/amalgam/admin/bg.png" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341237
+ Served asset /amalgam/admin/bg.png - 200 OK (6ms)
341238
+
341239
+
341240
+ Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341241
+ Served asset /glyphicons-halflings-white.png - 200 OK (11ms)
341242
+
341243
+
341244
+ Started GET "/assets/amalgam/admin/tree-node-bg.gif" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341245
+ Served asset /amalgam/admin/tree-node-bg.gif - 200 OK (2ms)
341246
+
341247
+
341248
+ Started GET "/assets/amalgam/admin/tree-last-node-bg.gif" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341249
+ Served asset /amalgam/admin/tree-last-node-bg.gif - 200 OK (2ms)
341250
+
341251
+
341252
+ Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2013-02-04 16:09:21 +0800
341253
+ Served asset /glyphicons-halflings.png - 200 OK (3ms)
341254
+
341255
+
341256
+ Started GET "/zh-CN/pages/test123" for 127.0.0.1 at 2013-02-04 16:09:23 +0800
341257
+
341258
+ ActionController::RoutingError (No route matches [GET] "/zh-CN/pages/test123"):
341259
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
341260
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
341261
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
341262
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
341263
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
341264
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
341265
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
341266
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
341267
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
341268
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
341269
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
341270
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
341271
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
341272
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
341273
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
341274
+ /Users/brownjohn/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
341275
+ /Users/brownjohn/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
341276
+ /Users/brownjohn/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
341277
+
341278
+
341279
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
341280
+
341281
+
341282
+ Started GET "/zh-CN/pages/test123" for 127.0.0.1 at 2013-02-04 16:09:27 +0800
341283
+
341284
+ ActionController::RoutingError (No route matches [GET] "/zh-CN/pages/test123"):
341285
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
341286
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
341287
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
341288
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
341289
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
341290
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
341291
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
341292
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
341293
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
341294
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
341295
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
341296
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
341297
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
341298
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
341299
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
341300
+ /Users/brownjohn/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
341301
+ /Users/brownjohn/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
341302
+ /Users/brownjohn/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
341303
+
341304
+
341305
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
341306
+
341307
+
341308
+ Started GET "/pages/test123" for 127.0.0.1 at 2013-02-04 16:09:31 +0800
341309
+ Processing by PagesController#show as HTML
341310
+ Parameters: {"slug"=>"test123"}
341311
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = ? LIMIT 1 [["id", 1]]
341312
+ Page Load (0.3ms) SELECT "pages".* FROM "pages" WHERE "pages"."slug" = 'test123' ORDER BY lft ASC LIMIT 1
341313
+ Page Load (0.3ms) SELECT "pages".* FROM "pages" WHERE ("pages"."lft" <= 1 AND "pages"."rgt" >= 2) AND ("pages"."id" != 1) ORDER BY lft ASC, "pages"."lft"
341314
+ Amalgam::Models::Group Load (0.5ms) SELECT "groups".* FROM "groups" INNER JOIN "base_groups" ON "groups"."id" = "base_groups"."group_id" WHERE "base_groups"."groupable_id" = 1 AND "base_groups"."groupable_type" = 'Page'
341315
+ Page::Translation Load (0.2ms) SELECT "page_translations".* FROM "page_translations" WHERE "page_translations"."page_id" = 1
341316
+ Attachment Load (0.4ms) SELECT "attachments".* FROM "attachments" WHERE "attachments"."attachable_id" = 1 AND "attachments"."attachable_type" = 'Page'
341317
+ Rendered pages/test123.html.haml within layouts/amalgam/admin/editor (214.4ms)
341318
+ Rendered /Users/brownjohn/code/amalgam/app/views/amalgam/admin/_nav_bar.html.haml (55.1ms)
341319
+ Completed 200 OK in 734ms (Views: 707.6ms | ActiveRecord: 2.4ms)
341320
+
341321
+
341322
+ Started GET "/assets/responsive.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341323
+ Served asset /responsive.css - 200 OK (9ms)
341324
+
341325
+
341326
+ Started GET "/assets/mercury/mercury.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341327
+ Served asset /mercury/mercury.css - 200 OK (14ms)
341328
+
341329
+
341330
+ Started GET "/assets/mercury/dialog.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341331
+ Served asset /mercury/dialog.css - 200 OK (3ms)
341332
+
341333
+
341334
+ Started GET "/assets/mercury/bootstrap-overrides.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341335
+ Served asset /mercury/bootstrap-overrides.css - 200 OK (4ms)
341336
+
341337
+
341338
+ Started GET "/assets/mercury/bootstrap-ish.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341339
+ Served asset /mercury/bootstrap-ish.css - 200 OK (5ms)
341340
+
341341
+
341342
+ Started GET "/assets/mercury.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341343
+ Served asset /mercury.css - 200 OK (13ms)
341344
+
341345
+
341346
+ Started GET "/assets/mercury/lightview.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341347
+ Served asset /mercury/lightview.css - 200 OK (4ms)
341348
+
341349
+
341350
+ Started GET "/assets/mercury/modal.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341351
+ Served asset /mercury/modal.css - 200 OK (3ms)
341352
+
341353
+
341354
+ Started GET "/assets/mercury/statusbar.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341355
+ Served asset /mercury/statusbar.css - 200 OK (5ms)
341356
+
341357
+
341358
+ Started GET "/assets/mercury/toolbar.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341359
+ Served asset /mercury/toolbar.css - 200 OK (3ms)
341360
+
341361
+
341362
+ Started GET "/assets/mercury/tooltip.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341363
+ Served asset /mercury/tooltip.css - 200 OK (3ms)
341364
+
341365
+
341366
+ Started GET "/assets/mercury/uploader.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341367
+ Served asset /mercury/uploader.css - 200 OK (3ms)
341368
+
341369
+
341370
+ Started GET "/assets/mercury/all_images.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341371
+ Served asset /mercury/all_images.css - 200 OK (47ms)
341372
+
341373
+
341374
+ Started GET "/assets/amalgam/editor.css?body=1" for 127.0.0.1 at 2013-02-04 16:09:32 +0800
341375
+ Served asset /amalgam/editor.css - 200 OK (22ms)
341376
+
341377
+
341378
+ Started GET "/assets/amalgam/mercury.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341379
+ Served asset /amalgam/mercury.js - 200 OK (49ms)
341380
+
341381
+
341382
+ Started GET "/assets/mercury/dependencies/jquery-ui-1.8.13.custom.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341383
+ Served asset /mercury/dependencies/jquery-ui-1.8.13.custom.js - 200 OK (5ms)
341384
+
341385
+
341386
+ Started GET "/assets/mercury/dependencies/jquery.additions.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341387
+ Served asset /mercury/dependencies/jquery.additions.js - 200 OK (3ms)
341388
+
341389
+
341390
+ Started GET "/assets/mercury/dependencies/jquery.htmlClean.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341391
+ Served asset /mercury/dependencies/jquery.htmlClean.js - 200 OK (3ms)
341392
+
341393
+
341394
+ Started GET "/assets/mercury/dependencies/liquidmetal.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341395
+ Served asset /mercury/dependencies/liquidmetal.js - 200 OK (4ms)
341396
+
341397
+
341398
+ Started GET "/assets/mercury/dependencies/showdown.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341399
+ Served asset /mercury/dependencies/showdown.js - 200 OK (5ms)
341400
+
341401
+
341402
+ Started GET "/assets/mercury/mercury.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341403
+ Served asset /mercury/mercury.js - 200 OK (85ms)
341404
+
341405
+
341406
+ Started GET "/assets/mercury/native_extensions.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341407
+ Served asset /mercury/native_extensions.js - 200 OK (5ms)
341408
+
341409
+
341410
+ Started GET "/assets/mercury/page_editor.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341411
+ Served asset /mercury/page_editor.js - 200 OK (5ms)
341412
+
341413
+
341414
+ Started GET "/assets/mercury/history_buffer.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341415
+ Served asset /mercury/history_buffer.js - 200 OK (6ms)
341416
+
341417
+
341418
+ Started GET "/assets/mercury/table_editor.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341419
+ Served asset /mercury/table_editor.js - 200 OK (5ms)
341420
+
341421
+
341422
+ Started GET "/assets/mercury/dialog.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341423
+ Served asset /mercury/dialog.js - 200 OK (3ms)
341424
+
341425
+
341426
+ Started GET "/assets/mercury/palette.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341427
+ Served asset /mercury/palette.js - 200 OK (3ms)
341428
+
341429
+
341430
+ Started GET "/assets/mercury/select.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341431
+ Served asset /mercury/select.js - 200 OK (5ms)
341432
+
341433
+
341434
+ Started GET "/assets/mercury/panel.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341435
+ Served asset /mercury/panel.js - 200 OK (4ms)
341436
+
341437
+
341438
+ Started GET "/assets/mercury/modal.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341439
+ Served asset /mercury/modal.js - 200 OK (3ms)
341440
+
341441
+
341442
+ Started GET "/assets/mercury/lightview.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341443
+ Served asset /mercury/lightview.js - 200 OK (3ms)
341444
+
341445
+
341446
+ Started GET "/assets/mercury/statusbar.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341447
+ Served asset /mercury/statusbar.js - 200 OK (3ms)
341448
+
341449
+
341450
+ Started GET "/assets/mercury/toolbar.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341451
+ Served asset /mercury/toolbar.js - 200 OK (3ms)
341452
+
341453
+
341454
+ Started GET "/assets/mercury/toolbar.button.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341455
+ Served asset /mercury/toolbar.button.js - 200 OK (5ms)
341456
+
341457
+
341458
+ Started GET "/assets/mercury/toolbar.button_group.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341459
+ Served asset /mercury/toolbar.button_group.js - 200 OK (46ms)
341460
+
341461
+
341462
+ Started GET "/assets/mercury/toolbar.expander.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341463
+ Served asset /mercury/toolbar.expander.js - 200 OK (3ms)
341464
+
341465
+
341466
+ Started GET "/assets/mercury/tooltip.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341467
+ Served asset /mercury/tooltip.js - 200 OK (3ms)
341468
+
341469
+
341470
+ Started GET "/assets/mercury/snippet.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341471
+ Served asset /mercury/snippet.js - 200 OK (3ms)
341472
+
341473
+
341474
+ Started GET "/assets/mercury/snippet_toolbar.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341475
+ Served asset /mercury/snippet_toolbar.js - 200 OK (3ms)
341476
+
341477
+
341478
+ Started GET "/assets/mercury/region.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341479
+ Served asset /mercury/region.js - 200 OK (5ms)
341480
+
341481
+
341482
+ Started GET "/assets/mercury/uploader.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341483
+ Served asset /mercury/uploader.js - 200 OK (3ms)
341484
+
341485
+
341486
+ Started GET "/assets/mercury/regions/full.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341487
+ Served asset /mercury/regions/full.js - 200 OK (5ms)
341488
+
341489
+
341490
+ Started GET "/assets/mercury/regions/image.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341491
+ Served asset /mercury/regions/image.js - 200 OK (4ms)
341492
+
341493
+
341494
+ Started GET "/assets/mercury/regions/markdown.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341495
+ Served asset /mercury/regions/markdown.js - 200 OK (3ms)
341496
+
341497
+
341498
+ Started GET "/assets/mercury/regions/simple.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341499
+ Served asset /mercury/regions/simple.js - 200 OK (3ms)
341500
+
341501
+
341502
+ Started GET "/assets/mercury/regions/snippets.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341503
+ Served asset /mercury/regions/snippets.js - 200 OK (3ms)
341504
+
341505
+
341506
+ Started GET "/assets/mercury/dialogs/backcolor.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341507
+ Served asset /mercury/dialogs/backcolor.js - 200 OK (3ms)
341508
+
341509
+
341510
+ Started GET "/assets/mercury/dialogs/forecolor.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341511
+ Served asset /mercury/dialogs/forecolor.js - 200 OK (3ms)
341512
+
341513
+
341514
+ Started GET "/assets/mercury/dialogs/formatblock.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341515
+ Served asset /mercury/dialogs/formatblock.js - 200 OK (4ms)
341516
+
341517
+
341518
+ Started GET "/assets/mercury/dialogs/snippetpanel.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341519
+ Served asset /mercury/dialogs/snippetpanel.js - 200 OK (4ms)
341520
+
341521
+
341522
+ Started GET "/assets/mercury/dialogs/style.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341523
+ Served asset /mercury/dialogs/style.js - 200 OK (3ms)
341524
+
341525
+
341526
+ Started GET "/assets/mercury/modals/htmleditor.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341527
+ Served asset /mercury/modals/htmleditor.js - 200 OK (43ms)
341528
+
341529
+
341530
+ Started GET "/assets/mercury/modals/insertcharacter.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341531
+ Served asset /mercury/modals/insertcharacter.js - 200 OK (3ms)
341532
+
341533
+
341534
+ Started GET "/assets/mercury/modals/insertlink.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341535
+ Served asset /mercury/modals/insertlink.js - 200 OK (5ms)
341536
+
341537
+
341538
+ Started GET "/assets/mercury/modals/insertmedia.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341539
+ Served asset /mercury/modals/insertmedia.js - 200 OK (3ms)
341540
+
341541
+
341542
+ Started GET "/assets/mercury/modals/insertsnippet.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341543
+ Served asset /mercury/modals/insertsnippet.js - 200 OK (3ms)
341544
+
341545
+
341546
+ Started GET "/assets/mercury/modals/inserttable.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341547
+ Served asset /mercury/modals/inserttable.js - 200 OK (3ms)
341548
+
341549
+
341550
+ Started GET "/assets/mercury/finalize.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341551
+ Served asset /mercury/finalize.js - 200 OK (5ms)
341552
+
341553
+
341554
+ Started GET "/assets/amalgam/mercury/locales/zh-CN.locale.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341555
+ Served asset /amalgam/mercury/locales/zh-CN.locale.js - 200 OK (2ms)
341556
+
341557
+
341558
+ Started GET "/assets/jquery.iframe-transport.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341559
+ Served asset /jquery.iframe-transport.js - 200 OK (1ms)
341560
+
341561
+
341562
+ Started GET "/assets/jquery.remotipart.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341563
+ Served asset /jquery.remotipart.js - 200 OK (3ms)
341564
+
341565
+
341566
+ Started GET "/assets/amalgam/editor.js?body=1" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341567
+ Served asset /amalgam/editor.js - 200 OK (58ms)
341568
+
341569
+
341570
+ Started GET "/mercury/panels/properties.html" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341571
+ Processing by MercuryController#resource as HTML
341572
+ Parameters: {"type"=>"panels", "resource"=>"properties"}
341573
+ Rendered /Users/brownjohn/code/amalgam/app/views/mercury/panels/properties.html (0.4ms)
341574
+ Completed 200 OK in 61ms (Views: 61.0ms | ActiveRecord: 0.0ms)
341575
+
341576
+
341577
+ Started GET "/pages/test123?mercury_frame=true&_=1359965373866" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341578
+ Processing by PagesController#show as HTML
341579
+ Parameters: {"mercury_frame"=>"true", "_"=>"1359965373866", "slug"=>"test123"}
341580
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = ? LIMIT 1 [["id", 1]]
341581
+ Page Load (0.4ms) SELECT "pages".* FROM "pages" WHERE "pages"."slug" = 'test123' ORDER BY lft ASC LIMIT 1
341582
+ Page Load (0.4ms) SELECT "pages".* FROM "pages" WHERE ("pages"."lft" <= 1 AND "pages"."rgt" >= 2) AND ("pages"."id" != 1) ORDER BY lft ASC, "pages"."lft"
341583
+ Amalgam::Models::Group Load (0.2ms) SELECT "groups".* FROM "groups" INNER JOIN "base_groups" ON "groups"."id" = "base_groups"."group_id" WHERE "base_groups"."groupable_id" = 1 AND "base_groups"."groupable_type" = 'Page'
341584
+ Page::Translation Load (0.2ms) SELECT "page_translations".* FROM "page_translations" WHERE "page_translations"."page_id" = 1
341585
+ Attachment Load (0.3ms) SELECT "attachments".* FROM "attachments" WHERE "attachments"."attachable_id" = 1 AND "attachments"."attachable_type" = 'Page'
341586
+ Rendered pages/test123.html.haml (38.1ms)
341587
+ Completed 200 OK in 51ms (Views: 38.9ms | ActiveRecord: 1.6ms)
341588
+
341589
+
341590
+ Started GET "/mercury/selects/style.html" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341591
+ Processing by MercuryController#resource as HTML
341592
+ Parameters: {"type"=>"selects", "resource"=>"style"}
341593
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/views/mercury/selects/style.html (0.5ms)
341594
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
341595
+
341596
+
341597
+ Started GET "/mercury/selects/formatblock.html" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341598
+ Processing by MercuryController#resource as HTML
341599
+ Parameters: {"type"=>"selects", "resource"=>"formatblock"}
341600
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/views/mercury/selects/formatblock.html (0.6ms)
341601
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
341602
+
341603
+
341604
+ Started GET "/mercury/palettes/backcolor.html" for 127.0.0.1 at 2013-02-04 16:09:33 +0800
341605
+ Processing by MercuryController#resource as HTML
341606
+ Parameters: {"type"=>"palettes", "resource"=>"backcolor"}
341607
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/views/mercury/palettes/backcolor.html (0.7ms)
341608
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
341609
+
341610
+
341611
+ Started GET "/mercury/palettes/forecolor.html" for 127.0.0.1 at 2013-02-04 16:09:34 +0800
341612
+ Processing by MercuryController#resource as HTML
341613
+ Parameters: {"type"=>"palettes", "resource"=>"forecolor"}
341614
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/mercury-rails-0.8.0/app/views/mercury/palettes/forecolor.html (0.6ms)
341615
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
341616
+
341617
+
341618
+ Started GET "/assets/mercury/toolbar/primary/_expander.png" for 127.0.0.1 at 2013-02-04 16:09:34 +0800
341619
+ Served asset /mercury/toolbar/primary/_expander.png - 200 OK (4ms)
341620
+
341621
+
341622
+ Started GET "/assets/mercury/loading-dark.gif" for 127.0.0.1 at 2013-02-04 16:09:34 +0800
341623
+ Served asset /mercury/loading-dark.gif - 200 OK (3ms)
341624
+
341625
+
341626
+ Started DELETE "/admin_user/signout?locale=zh-CN" for 127.0.0.1 at 2013-02-04 16:09:38 +0800
341627
+ Processing by Amalgam::SessionsController#destroy as HTML
341628
+ Parameters: {"authenticity_token"=>"cb5+0kz0wERETWmA6Go6ZBsuFF7E92MYyKVYyRCjjoY=", "locale"=>"zh-CN", "resource"=>"admin_user"}
341629
+ AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = ? LIMIT 1 [["id", 1]]
341630
+ Redirected to http://127.0.0.1:3000/?locale=zh-CN
341631
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
341632
+
341633
+
341634
+ Started GET "/?locale=zh-CN" for 127.0.0.1 at 2013-02-04 16:09:38 +0800
341635
+ Processing by PagesController#show as HTML
341636
+ Parameters: {"locale"=>"zh-CN", "slug"=>"home"}
341637
+ Page Load (0.3ms) SELECT "pages".* FROM "pages" WHERE "pages"."slug" = 'home' ORDER BY lft ASC LIMIT 1
341638
+ Completed 500 Internal Server Error in 1ms
341639
+
341640
+ ActiveRecord::RecordNotFound (Couldn't find page with PATH=home):
341641
+ app/controllers/pages_controller.rb:7:in `show'
341642
+
341643
+
341644
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
341645
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
341646
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.8ms)
341647
+
341648
+
341649
+ Started GET "/" for 127.0.0.1 at 2013-02-04 16:09:44 +0800
341650
+ Processing by PagesController#show as HTML
341651
+ Parameters: {"slug"=>"home"}
341652
+ Page Load (0.3ms) SELECT "pages".* FROM "pages" WHERE "pages"."slug" = 'home' ORDER BY lft ASC LIMIT 1
341653
+ Completed 500 Internal Server Error in 2ms
341654
+
341655
+ ActiveRecord::RecordNotFound (Couldn't find page with PATH=home):
341656
+ app/controllers/pages_controller.rb:7:in `show'
341657
+
341658
+
341659
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
341660
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
341661
+ Rendered /Users/brownjohn/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.2ms)
341662
+ Connecting to database specified by database.yml
341663
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341664
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341665
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
341666
+  (0.2ms) select sqlite_version(*)
341667
+  (1.3ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "email" varchar(255), "password_digest" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
341668
+  (1.4ms) CREATE TABLE "attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachable_id" integer, "attachable_type" varchar(255) DEFAULT 'Page', "name" varchar(255), "file" varchar(255), "content_type" varchar(255), "original_filename" varchar(255), "description" varchar(255), "secure_token" varchar(255), "file_size" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
341669
+  (1.4ms) CREATE TABLE "base_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer, "groupable_type" varchar(255), "groupable_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
341670
+  (1.0ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
341671
+  (0.8ms) CREATE TABLE "page_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "page_id" integer, "locale" varchar(255), "title" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
341672
+  (0.8ms) CREATE INDEX "index_page_translations_on_locale" ON "page_translations" ("locale")
341673
+  (0.7ms) CREATE INDEX "index_page_translations_on_page_id" ON "page_translations" ("page_id")
341674
+  (0.9ms) CREATE TABLE "pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "path" varchar(255), "slug" varchar(255) NOT NULL, "lft" integer, "rgt" integer, "parent_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
341675
+  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
341676
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
341677
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
341678
+  (0.1ms) SELECT version FROM "schema_migrations"
341679
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121219062901')
341680
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120824071117')
341681
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120904075542')
341682
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120913061406')
341683
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120920033135')
341684
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121219062850')
341685
+ Connecting to database specified by database.yml
341686
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341687
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341688
+ Connecting to database specified by database.yml
341689
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341690
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341691
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
341692
+ Connecting to database specified by database.yml
341693
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341694
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341695
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
341696
+ Migrating to CreatePages (20120824071117)
341697
+ Migrating to CreatePosts (20120904075542)
341698
+ Migrating to CreateAdmins (20120913061406)
341699
+ Migrating to CreateAttachments (20120920033135)
341700
+ Migrating to CreateGroups (20121219062850)
341701
+ Migrating to CreateBaseGroups (20121219062901)
341702
+ Migrating to TestPages (20130207142807)
341703
+  (0.0ms) select sqlite_version(*)
341704
+  (0.1ms) begin transaction
341705
+  (0.0ms) rollback transaction
341706
+ Connecting to database specified by database.yml
341707
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341708
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341709
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
341710
+ Migrating to CreatePages (20120824071117)
341711
+ Migrating to CreatePosts (20120904075542)
341712
+ Migrating to CreateAdmins (20120913061406)
341713
+ Migrating to CreateAttachments (20120920033135)
341714
+ Migrating to CreateGroups (20121219062850)
341715
+ Migrating to CreateBaseGroups (20121219062901)
341716
+ Migrating to TestPages (20130207142807)
341717
+  (0.0ms) select sqlite_version(*)
341718
+  (0.1ms) begin transaction
341719
+  (0.1ms) rollback transaction
341720
+ Connecting to database specified by database.yml
341721
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:Group> at /Users/brownjohn/code/amalgam/lib/amalgam/models/group.rb:4)
341722
+ DEPRECATION WARNING: Calling set_table_name is deprecated. Please use `self.table_name = 'the_name'` instead. (called from <class:BaseGroup> at /Users/brownjohn/code/amalgam/lib/amalgam/models/base_group.rb:4)
341723
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
341724
+ Migrating to CreatePages (20120824071117)
341725
+ Migrating to CreatePosts (20120904075542)
341726
+ Migrating to CreateAdmins (20120913061406)
341727
+ Migrating to CreateAttachments (20120920033135)
341728
+ Migrating to CreateGroups (20121219062850)
341729
+ Migrating to CreateBaseGroups (20121219062901)
341730
+ Migrating to TestPages (20130207142807)
341731
+  (0.0ms) select sqlite_version(*)
341732
+  (0.0ms) begin transaction
341733
+  (0.0ms) rollback transaction