saphira 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +29 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/images/saphira/icons/32x32/direction_up.png +0 -0
  5. data/app/assets/images/saphira/icons/32x32/file.png +0 -0
  6. data/app/assets/images/saphira/icons/32x32/folder.png +0 -0
  7. data/app/assets/javascripts/saphira/application.js +9 -0
  8. data/app/assets/javascripts/saphira/file_items.js +2 -0
  9. data/app/assets/stylesheets/saphira/application.css +7 -0
  10. data/app/assets/stylesheets/saphira/file_items.css +17 -0
  11. data/app/assets/stylesheets/scaffold.css +56 -0
  12. data/app/controllers/saphira/application_controller.rb +4 -0
  13. data/app/controllers/saphira/file_items_controller.rb +104 -0
  14. data/app/helpers/saphira/application_helper.rb +4 -0
  15. data/app/helpers/saphira/file_items_helper.rb +4 -0
  16. data/app/models/saphira/file_item.rb +83 -0
  17. data/app/views/layouts/saphira/application.html.erb +14 -0
  18. data/app/views/saphira/file_items/_form.html.erb +33 -0
  19. data/app/views/saphira/file_items/edit_file.html.erb +6 -0
  20. data/app/views/saphira/file_items/edit_folder.html.erb +6 -0
  21. data/app/views/saphira/file_items/index.html.erb +30 -0
  22. data/app/views/saphira/file_items/new_file.html.erb +5 -0
  23. data/app/views/saphira/file_items/new_folder.html.erb +5 -0
  24. data/app/views/saphira/file_items/show.html.erb +39 -0
  25. data/config/initializers/acts_as_taggable_on.rb +1 -0
  26. data/config/initializers/awesome_nested_set.rb +1 -0
  27. data/config/initializers/dragonfly.rb +7 -0
  28. data/config/initializers/exifr.rb +2 -0
  29. data/config/initializers/friendly_id.rb +1 -0
  30. data/config/routes.rb +5 -0
  31. data/db/migrate/20110904170134_create_saphira_file_items.rb +23 -0
  32. data/db/migrate/20110904170241_acts_as_taggable_on_migration.rb +28 -0
  33. data/lib/saphira/engine.rb +5 -0
  34. data/lib/saphira/version.rb +3 -0
  35. data/lib/saphira.rb +4 -0
  36. data/lib/tasks/saphira_tasks.rake +4 -0
  37. data/test/dummy/Guardfile +8 -0
  38. data/test/dummy/Rakefile +7 -0
  39. data/test/dummy/app/assets/javascripts/application.js +9 -0
  40. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  41. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  42. data/test/dummy/app/controllers/application_controller.rb +3 -0
  43. data/test/dummy/app/helpers/application_helper.rb +2 -0
  44. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  45. data/test/dummy/config/application.rb +45 -0
  46. data/test/dummy/config/boot.rb +10 -0
  47. data/test/dummy/config/cucumber.yml +8 -0
  48. data/test/dummy/config/database.yml +28 -0
  49. data/test/dummy/config/environment.rb +5 -0
  50. data/test/dummy/config/environments/development.rb +30 -0
  51. data/test/dummy/config/environments/production.rb +60 -0
  52. data/test/dummy/config/environments/test.rb +42 -0
  53. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  54. data/test/dummy/config/initializers/inflections.rb +10 -0
  55. data/test/dummy/config/initializers/mime_types.rb +5 -0
  56. data/test/dummy/config/initializers/secret_token.rb +7 -0
  57. data/test/dummy/config/initializers/session_store.rb +8 -0
  58. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  59. data/test/dummy/config/locales/en.yml +5 -0
  60. data/test/dummy/config/routes.rb +4 -0
  61. data/test/dummy/config.ru +4 -0
  62. data/test/dummy/db/development.sqlite3 +0 -0
  63. data/test/dummy/db/migrate/20110904172951_create_saphira_file_items.rb +23 -0
  64. data/test/dummy/db/migrate/20110904172952_acts_as_taggable_on_migration.rb +28 -0
  65. data/test/dummy/db/schema.rb +54 -0
  66. data/test/dummy/db/test.sqlite3 +0 -0
  67. data/test/dummy/features/manage_file_items.feature +35 -0
  68. data/test/dummy/features/step_definitions/file_item_steps.rb +18 -0
  69. data/test/dummy/features/step_definitions/web_steps.rb +211 -0
  70. data/test/dummy/features/support/env.rb +50 -0
  71. data/test/dummy/features/support/files/eos-550d-wrong-orientation.jpg +0 -0
  72. data/test/dummy/features/support/paths.rb +38 -0
  73. data/test/dummy/features/support/selectors.rb +39 -0
  74. data/test/dummy/lib/tasks/cucumber.rake +65 -0
  75. data/test/dummy/log/development.log +524 -0
  76. data/test/dummy/log/test.log +362 -0
  77. data/test/dummy/public/404.html +26 -0
  78. data/test/dummy/public/422.html +26 -0
  79. data/test/dummy/public/500.html +26 -0
  80. data/test/dummy/public/favicon.ico +0 -0
  81. data/test/dummy/script/cucumber +10 -0
  82. data/test/dummy/script/rails +6 -0
  83. data/test/dummy/system/files/development/2011/09/04/20_16_51_527_IMG_0074.JPG +0 -0
  84. data/test/dummy/system/files/development/2011/09/04/20_16_51_527_IMG_0074.JPG.meta +1 -0
  85. data/test/dummy/system/files/test/2011/09/04/20_14_52_22_eos_550d_wrong_orientation.jpg +0 -0
  86. data/test/dummy/system/files/test/2011/09/04/20_14_52_22_eos_550d_wrong_orientation.jpg.meta +1 -0
  87. data/test/dummy/tmp/cache/assets/C54/230/sprockets%2F63597bd80af49501176a9c782c200818 +0 -0
  88. data/test/dummy/tmp/cache/assets/C8A/C90/sprockets%2Fb0034d98e259fe21084231df778476e5 +0 -0
  89. data/test/dummy/tmp/cache/assets/CBB/220/sprockets%2Fe50398a56291b292932098dbaf6f60e7 +0 -0
  90. data/test/dummy/tmp/cache/assets/CED/3A0/sprockets%2F5598ef34994d21041804d8edaae45e75 +0 -0
  91. data/test/dummy/tmp/cache/assets/D0F/940/sprockets%2Fe5a0c84816880ab73280e1d7c6c6b53f +0 -0
  92. data/test/dummy/tmp/cache/assets/D25/A40/sprockets%2F3597585a09358e74b9addba0fc954d87 +0 -0
  93. data/test/dummy/tmp/cache/assets/D28/040/sprockets%2F54bad3bcb77f949259960f3f80837af9 +0 -0
  94. data/test/dummy/tmp/cache/assets/D8B/C20/sprockets%2F5b4cb2011e99baa41b98122dabfe94d0 +0 -0
  95. data/test/dummy/tmp/cache/assets/DA9/040/sprockets%2F840de459a6d1c9d87c8dcaf24f128b6c +0 -0
  96. data/test/dummy/tmp/cache/assets/DD1/040/sprockets%2Fd417bfb346f42b08fa70df9d17c9a4ee +0 -0
  97. data/test/dummy/tmp/cache/assets/DF8/F80/sprockets%2Fdda7c25be0e8e262ebc270da9775abd4 +0 -0
  98. data/test/dummy/tmp/cache/assets/E32/DF0/sprockets%2Fbd8fed5e48cbc136c85e9c4ab6d1e3b4 +0 -0
  99. data/test/dummy/tmp/dragonfly/cache/body/11/4316e3371abd942602830d5ce3e55d4ba94ec5 +0 -0
  100. data/test/dummy/tmp/dragonfly/cache/body/3e/f63b348d8ad48be7f3d8869f255af8d5d8b19f +8982 -0
  101. data/test/dummy/tmp/dragonfly/cache/body/61/e9711fd55eccdf62882cb8d127b22664f7023f +3 -0
  102. data/test/dummy/tmp/dragonfly/cache/body/a1/d3d5a6ed952ccf4816b4a96d4767ce9bae8164 +5 -0
  103. data/test/dummy/tmp/dragonfly/cache/body/c2/d1fe276d6e527c155855e99dc19d239b6d71f3 +7 -0
  104. data/test/dummy/tmp/dragonfly/cache/body/cb/052a86fcf83c49b8a1c5ca5f29b11ba31d4038 +17 -0
  105. data/test/dummy/tmp/dragonfly/cache/body/d4/ff9b03ee9e54acce72e6b793693031079eb150 +332 -0
  106. data/test/dummy/tmp/dragonfly/cache/meta/24/d0aebc1b6d4ac3b10caa6cfabf89b0ad8551c5 +0 -0
  107. data/test/dummy/tmp/dragonfly/cache/meta/37/fb962d39887389e020d58ef1f745ef1a6107cc +0 -0
  108. data/test/dummy/tmp/dragonfly/cache/meta/78/da9e9f151eb605b427b43e2098640de3fd4a6d +0 -0
  109. data/test/dummy/tmp/dragonfly/cache/meta/8a/00f63a175cfe09352e9103621040457aafc9e8 +0 -0
  110. data/test/dummy/tmp/dragonfly/cache/meta/a0/d65624dcf4c7e6827639f25060a3bf4bd6020d +0 -0
  111. data/test/dummy/tmp/dragonfly/cache/meta/ee/fe74949a8c2a0bbc077385a12944d9f98a12e0 +0 -0
  112. data/test/dummy/tmp/dragonfly/cache/meta/f9/67ac04386c59253bd80f4034d18af166cc5691 +0 -0
  113. data/test/fixtures/saphira/file_items.yml +25 -0
  114. data/test/functional/saphira/file_items_controller_test.rb +51 -0
  115. data/test/integration/navigation_test.rb +10 -0
  116. data/test/saphira_test.rb +7 -0
  117. data/test/test_helper.rb +10 -0
  118. data/test/unit/helpers/saphira/file_items_helper_test.rb +6 -0
  119. data/test/unit/saphira/file_item_test.rb +9 -0
  120. metadata +276 -0
@@ -0,0 +1,524 @@
1
+  (0.1ms) select sqlite_version(*)
2
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.1ms) PRAGMA index_list("schema_migrations")
4
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreateSaphiraFileItems (20110904172951)
7
+  (0.6ms) CREATE TABLE "saphira_file_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "item_type" varchar(255), "file_uid" varchar(255), "file_name" varchar(255), "slug" varchar(255), "path" varchar(255), "parent_id" integer, "lft" integer, "rgt" integer, "dynamic_attributes" text, "created_at" datetime, "updated_at" datetime)
8
+  (0.0ms) PRAGMA index_list("saphira_file_items")
9
+  (0.2ms) CREATE INDEX "index_saphira_file_items_on_slug" ON "saphira_file_items" ("slug")
10
+  (0.0ms) PRAGMA index_list("saphira_file_items")
11
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_slug')
12
+  (0.6ms) CREATE UNIQUE INDEX "index_saphira_file_items_on_path" ON "saphira_file_items" ("path")
13
+  (0.1ms) PRAGMA index_list("saphira_file_items")
14
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_path')
15
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_slug')
16
+  (0.2ms) CREATE INDEX "index_saphira_file_items_on_parent_id" ON "saphira_file_items" ("parent_id")
17
+  (0.0ms) PRAGMA index_list("saphira_file_items")
18
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_parent_id')
19
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_path')
20
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_slug')
21
+  (0.1ms) CREATE INDEX "index_saphira_file_items_on_lft" ON "saphira_file_items" ("lft")
22
+  (0.0ms) PRAGMA index_list("saphira_file_items")
23
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_lft')
24
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_parent_id')
25
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_path')
26
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_slug')
27
+  (0.1ms) CREATE INDEX "index_saphira_file_items_on_rgt" ON "saphira_file_items" ("rgt")
28
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110904172951')
29
+ Migrating to ActsAsTaggableOnMigration (20110904172952)
30
+  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
31
+  (0.3ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar(255), "tagger_id" integer, "tagger_type" varchar(255), "context" varchar(255), "created_at" datetime) 
32
+  (0.0ms) PRAGMA index_list("taggings")
33
+  (0.2ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
34
+  (0.1ms) PRAGMA index_list("taggings")
35
+  (0.0ms) PRAGMA index_info('index_taggings_on_tag_id')
36
+  (0.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
37
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110904172952')
38
+  (0.5ms) select sqlite_version(*)
39
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
40
+  (0.0ms) PRAGMA index_list("saphira_file_items")
41
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_rgt')
42
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_lft')
43
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_parent_id')
44
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_path')
45
+  (0.0ms) PRAGMA index_info('index_saphira_file_items_on_slug')
46
+  (0.2ms) PRAGMA index_list("taggings")
47
+  (0.0ms) PRAGMA index_info('index_taggings_on_taggable_id_and_taggable_type_and_context')
48
+  (0.0ms) PRAGMA index_info('index_taggings_on_tag_id')
49
+  (0.0ms) PRAGMA index_list("tags")
50
+
51
+
52
+ Started GET "/" for 127.0.0.1 at 2011-09-04 20:05:51 +0200
53
+
54
+ ActionController::RoutingError (No route matches [GET] "/"):
55
+
56
+
57
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (18.9ms)
58
+
59
+
60
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:06:03 +0200
61
+ Processing by Saphira::FileItemsController#index as HTML
62
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (33.6ms)
63
+ Completed 500 Internal Server Error in 88ms
64
+
65
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
66
+ 1: <h1>Listing <%= @file_item.name %></h1>
67
+ 2:
68
+ 3: <table>
69
+ 4: <% unless @file_item.id.nil? %>
70
+
71
+
72
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
73
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
74
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.8ms)
75
+
76
+
77
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:06:23 +0200
78
+ Processing by Saphira::FileItemsController#index as HTML
79
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (0.8ms)
80
+ Completed 500 Internal Server Error in 8ms
81
+
82
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
83
+ 1: <h1>Listing <%= @file_item.name %></h1>
84
+ 2:
85
+ 3: <table>
86
+ 4: <% unless @file_item.id.nil? %>
87
+
88
+
89
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
90
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
91
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.0ms)
92
+
93
+
94
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:06:25 +0200
95
+ Processing by Saphira::FileItemsController#index as HTML
96
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (0.8ms)
97
+ Completed 500 Internal Server Error in 9ms
98
+
99
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
100
+ 1: <h1>Listing <%= @file_item.name %></h1>
101
+ 2:
102
+ 3: <table>
103
+ 4: <% unless @file_item.id.nil? %>
104
+
105
+
106
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
107
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
108
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.8ms)
109
+
110
+
111
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:06:43 +0200
112
+ Processing by Saphira::FileItemsController#index as HTML
113
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.8ms)
114
+ Completed 500 Internal Server Error in 9ms
115
+
116
+ ActionView::Template::Error (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id):
117
+ 1: <h1>Listing <%#= @file_item.name %></h1>
118
+ 2:
119
+ 3: <table>
120
+ 4: <% unless @file_item.id.nil? %>
121
+ 5: <tr>
122
+ 6: <td><%= link_to image_tag('filemanager/icons/32x32/direction_up.png'), (@file_item.parent || file_items_path) %></td>
123
+ 7: <td><%= link_to '..', (@file_item.parent || file_items_path) %></td>
124
+
125
+
126
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
127
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
128
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.6ms)
129
+
130
+
131
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:07:06 +0200
132
+ Processing by Saphira::FileItemsController#index as HTML
133
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.9ms)
134
+ Completed 500 Internal Server Error in 9ms
135
+
136
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
137
+ 1: <h1>Listing <%= @file_item.name %></h1>
138
+ 2:
139
+ 3: <table>
140
+ 4: <% unless @file_item.id.nil? %>
141
+
142
+
143
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
144
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
145
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.7ms)
146
+
147
+
148
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:07:08 +0200
149
+ Processing by Saphira::FileItemsController#index as HTML
150
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (0.8ms)
151
+ Completed 500 Internal Server Error in 8ms
152
+
153
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
154
+ 1: <h1>Listing <%= @file_item.name %></h1>
155
+ 2:
156
+ 3: <table>
157
+ 4: <% unless @file_item.id.nil? %>
158
+
159
+
160
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
161
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
162
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.8ms)
163
+
164
+
165
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:07:18 +0200
166
+ Processing by Saphira::FileItemsController#index as HTML
167
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (0.9ms)
168
+ Completed 500 Internal Server Error in 8ms
169
+
170
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
171
+ 1: <h1>Listing <%= @file_item.name %></h1>
172
+ 2:
173
+ 3: <table>
174
+ 4: <% unless @file_item.id.nil? %>
175
+
176
+
177
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
178
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
179
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.9ms)
180
+
181
+
182
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:07:29 +0200
183
+ Processing by Saphira::FileItemsController#index as HTML
184
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (0.9ms)
185
+ Completed 500 Internal Server Error in 8ms
186
+
187
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
188
+ 1: <h1>Listing <%= @file_item.name %></h1>
189
+ 2:
190
+ 3: <table>
191
+ 4: <% unless @file_item.id.nil? %>
192
+
193
+
194
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
195
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
196
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.8ms)
197
+
198
+
199
+ Started GET "/admin/saphira/" for 127.0.0.1 at 2011-09-04 20:08:03 +0200
200
+ Processing by Saphira::FileItemsController#index as HTML
201
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (0.9ms)
202
+ Completed 500 Internal Server Error in 8ms
203
+
204
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
205
+ 1: <h1>Listing <%= @file_item.name %></h1>
206
+ 2:
207
+ 3: <table>
208
+ 4: <% unless @file_item.id.nil? %>
209
+
210
+
211
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
212
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
213
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.6ms)
214
+
215
+
216
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:08:07 +0200
217
+ Processing by Saphira::FileItemsController#index as HTML
218
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.0ms)
219
+ Completed 500 Internal Server Error in 8ms
220
+
221
+ ActionView::Template::Error (undefined method `name' for nil:NilClass):
222
+ 1: <h1>Listing <%= @file_item.name %></h1>
223
+ 2:
224
+ 3: <table>
225
+ 4: <% unless @file_item.id.nil? %>
226
+
227
+
228
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
229
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
230
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.8ms)
231
+
232
+
233
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:08:41 +0200
234
+ Processing by Saphira::FileItemsController#index as HTML
235
+ Saphira::FileItem Load (0.1ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
236
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (3.1ms)
237
+ Completed 500 Internal Server Error in 98ms
238
+
239
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Filemanager):
240
+ 21:
241
+ 22: <br />
242
+ 23:
243
+ 24: <%= link_to 'New File', new_file_item_path(:type => Filemanager::FileItem::TYPE_FILE, :parent_id => @file_item.id) %>
244
+ 25: <%= link_to 'New Folder', new_file_item_path(:type => Filemanager::FileItem::TYPE_FOLDER, :parent_id => @file_item.id) %>
245
+ 26:
246
+ 27: <% unless @file_item.id.nil? %>
247
+
248
+
249
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
250
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
251
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.8ms)
252
+
253
+
254
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:09:13 +0200
255
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
256
+ Processing by Saphira::FileItemsController#index as HTML
257
+ Saphira::FileItem Load (0.1ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
258
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (2.8ms)
259
+ Completed 500 Internal Server Error in 25ms
260
+
261
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Filemanager):
262
+ 21:
263
+ 22: <br />
264
+ 23:
265
+ 24: <%= link_to 'New File', new_file_item_path(:type => Filemanager::FileItem::TYPE_FILE, :parent_id => @file_item.id) %>
266
+ 25: <%= link_to 'New Folder', new_file_item_path(:type => Filemanager::FileItem::TYPE_FOLDER, :parent_id => @file_item.id) %>
267
+ 26:
268
+ 27: <% unless @file_item.id.nil? %>
269
+
270
+
271
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
272
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
273
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.9ms)
274
+
275
+
276
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:09:39 +0200
277
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
278
+ Processing by Saphira::FileItemsController#index as HTML
279
+ Saphira::FileItem Load (0.1ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
280
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (53.1ms)
281
+ Completed 500 Internal Server Error in 174ms
282
+
283
+ ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::Filemanager):
284
+ 21:
285
+ 22: <br />
286
+ 23:
287
+ 24: <%= link_to 'New File', new_file_item_path(:type => Filemanager::FileItem::TYPE_FILE, :parent_id => @file_item.id) %>
288
+ 25: <%= link_to 'New Folder', new_file_item_path(:type => Filemanager::FileItem::TYPE_FOLDER, :parent_id => @file_item.id) %>
289
+ 26:
290
+ 27: <% unless @file_item.id.nil? %>
291
+
292
+
293
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
294
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
295
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.1ms)
296
+
297
+
298
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:11:14 +0200
299
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
300
+ Processing by Saphira::FileItemsController#index as HTML
301
+ Saphira::FileItem Load (0.1ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
302
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (2.1ms)
303
+ Compiled saphira/application.css (1ms) (pid 95518)
304
+ Compiled saphira/file_items.css (0ms) (pid 95518)
305
+ Completed 500 Internal Server Error in 48ms
306
+
307
+ ActionView::Template::Error (couldn't find file 'jquery'
308
+ (in /Users/spieker/Sites/gems-projects/saphira/app/assets/javascripts/saphira/application.js:7)):
309
+ 3: <head>
310
+ 4: <title>Saphira</title>
311
+ 5: <%= stylesheet_link_tag "saphira/application" %>
312
+ 6: <%= javascript_include_tag "saphira/application" %>
313
+ 7: <%= csrf_meta_tags %>
314
+ 8: </head>
315
+ 9: <body>
316
+
317
+
318
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
319
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
320
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.2ms)
321
+
322
+
323
+ Started GET "/admin/saphira" for 127.0.0.1 at 2011-09-04 20:12:18 +0200
324
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
325
+ Processing by Saphira::FileItemsController#index as HTML
326
+ Saphira::FileItem Load (0.1ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
327
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (20.9ms)
328
+ Compiled saphira/application.js (4ms) (pid 95583)
329
+ Compiled jquery.js (7ms) (pid 95583)
330
+ Compiled jquery_ujs.js (1ms) (pid 95583)
331
+ Compiled saphira/file_items.js (0ms) (pid 95583)
332
+ Completed 200 OK in 194ms (Views: 178.3ms | ActiveRecord: 0.3ms)
333
+
334
+
335
+ Started GET "/assets/saphira/application.css?body=1" for 127.0.0.1 at 2011-09-04 20:12:19 +0200
336
+ Served asset /saphira/application.css - 200 OK (110ms)
337
+
338
+
339
+ Started GET "/assets/saphira/file_items.css?body=1" for 127.0.0.1 at 2011-09-04 20:12:19 +0200
340
+ Served asset /saphira/file_items.css - 200 OK (22ms)
341
+
342
+
343
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-04 20:12:19 +0200
344
+ Served asset /jquery_ujs.js - 200 OK (7ms)
345
+
346
+
347
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-04 20:12:19 +0200
348
+ Served asset /jquery.js - 200 OK (10ms)
349
+
350
+
351
+ Started GET "/assets/saphira/application.js?body=1" for 127.0.0.1 at 2011-09-04 20:12:19 +0200
352
+ Served asset /saphira/application.js - 200 OK (5ms)
353
+
354
+
355
+ Started GET "/assets/saphira/file_items.js?body=1" for 127.0.0.1 at 2011-09-04 20:12:19 +0200
356
+ Served asset /saphira/file_items.js - 200 OK (25ms)
357
+
358
+
359
+ Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-04 20:12:22 +0200
360
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
361
+ Processing by Saphira::FileItemsController#new as HTML
362
+ Parameters: {"type"=>"file"}
363
+ Completed 500 Internal Server Error in 79ms
364
+
365
+ NameError (undefined local variable or method `current_user' for #<Saphira::FileItemsController:0x0000010304a250>):
366
+
367
+
368
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
369
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
370
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (4.8ms)
371
+
372
+
373
+ Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-04 20:12:48 +0200
374
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
375
+ Processing by Saphira::FileItemsController#new as HTML
376
+ Parameters: {"type"=>"file"}
377
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
378
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (178.4ms)
379
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (194.1ms)
380
+ Completed 500 Internal Server Error in 316ms
381
+
382
+ ActionView::Template::Error (undefined method `user_id' for #<Saphira::FileItem:0x00000100a400a0>):
383
+ 26: <%= f.text_field :tag_list %>
384
+ 27: </div>
385
+ 28: <div class="actions">
386
+ 29: <%= f.hidden_field :user_id %>
387
+ 30: <%= f.hidden_field :item_type %>
388
+ 31: <%= f.hidden_field :parent_id %>
389
+ 32: <%= f.submit 'Create' %>
390
+
391
+
392
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
393
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
394
+ Rendered /Users/spieker/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.1ms)
395
+
396
+
397
+ Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
398
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
399
+ Processing by Saphira::FileItemsController#new as HTML
400
+ Parameters: {"type"=>"file"}
401
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
402
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (16.5ms)
403
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (17.8ms)
404
+ Completed 200 OK in 90ms (Views: 25.3ms | ActiveRecord: 0.6ms)
405
+
406
+
407
+ Started GET "/assets/saphira/application.css?body=1" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
408
+ Served asset /saphira/application.css - 304 Not Modified (0ms)
409
+
410
+
411
+ Started GET "/assets/saphira/file_items.css?body=1" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
412
+ Served asset /saphira/file_items.css - 304 Not Modified (0ms)
413
+
414
+
415
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
416
+ Served asset /jquery.js - 304 Not Modified (0ms)
417
+
418
+
419
+ Started GET "/assets/saphira/file_items.js?body=1" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
420
+ Served asset /saphira/file_items.js - 304 Not Modified (0ms)
421
+
422
+
423
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
424
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
425
+
426
+
427
+ Started GET "/assets/saphira/application.js?body=1" for 127.0.0.1 at 2011-09-04 20:13:05 +0200
428
+ Served asset /saphira/application.js - 304 Not Modified (0ms)
429
+
430
+
431
+ Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-04 20:16:25 +0200
432
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
433
+ Processing by Saphira::FileItemsController#new as HTML
434
+ Parameters: {"type"=>"file"}
435
+ ActsAsTaggableOn::Tag Load (0.3ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
436
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (191.7ms)
437
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (226.1ms)
438
+ Completed 200 OK in 315ms (Views: 298.9ms | ActiveRecord: 1.2ms)
439
+
440
+
441
+ Started GET "/assets/saphira/application.css?body=1" for 127.0.0.1 at 2011-09-04 20:16:25 +0200
442
+ Served asset /saphira/application.css - 304 Not Modified (0ms)
443
+
444
+
445
+ Started GET "/assets/saphira/file_items.css?body=1" for 127.0.0.1 at 2011-09-04 20:16:26 +0200
446
+ Served asset /saphira/file_items.css - 304 Not Modified (4ms)
447
+
448
+
449
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:26 +0200
450
+ Served asset /jquery.js - 304 Not Modified (9ms)
451
+
452
+
453
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:26 +0200
454
+ Served asset /jquery_ujs.js - 304 Not Modified (5ms)
455
+
456
+
457
+ Started GET "/assets/saphira/file_items.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:26 +0200
458
+ Served asset /saphira/file_items.js - 304 Not Modified (3ms)
459
+
460
+
461
+ Started GET "/assets/saphira/application.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:26 +0200
462
+ Served asset /saphira/application.js - 304 Not Modified (0ms)
463
+
464
+
465
+ Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-04 20:16:47 +0200
466
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
467
+ Processing by Saphira::FileItemsController#create as HTML
468
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"rQl9zMVj3kNVFvByRC3mORA3vzFs+rxVywKoFEXjNXs=", "file_item"=>{"name"=>"Mülleimer", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000102645a20 @original_filename="IMG_0074.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file_item[file]\"; filename=\"IMG_0074.JPG\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/var/folders/j5/j5YeT6owHCOVwWrGfycQx++++TI/-Tmp-/RackMultipart20110904-95649-1myck3b>>, "tag_list"=>"Trash, Orange, Berlin", "item_type"=>"file", "parent_id"=>""}, "commit"=>"Create"}
469
+ Saphira::FileItem Load (0.2ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'mulleimer' OR "slug" LIKE 'mulleimer--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
470
+  (0.1ms) SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'Mülleimer' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
471
+  (0.3ms) SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
472
+ SQL (9.0ms) INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 04 Sep 2011 18:16:52 UTC +00:00], ["dynamic_attributes", "--- \n:field_image_capture_date: 2011-08-26 14:04:10 +02:00\n:field_image_exposure_time: !ruby/object:Rational \n denominator: 40\n numerator: 1\n:field_image_f_number: !ruby/object:Rational \n denominator: 1\n numerator: 10\n:field_image_make: Canon\n:field_image_model: Canon EOS 550D\n:field_image_orientation: 8\n:field_image_orientation_transformed: true\n"], ["file_name", "IMG_0074.JPG"], ["file_uid", "2011/09/04/20_16_51_527_IMG_0074.JPG"], ["item_type", "file"], ["lft", 1], ["name", "Mülleimer"], ["parent_id", nil], ["path", "mulleimer"], ["rgt", 2], ["slug", "mulleimer"], ["updated_at", Sun, 04 Sep 2011 18:16:52 UTC +00:00]]
473
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (name LIKE 'Trash' OR name LIKE 'Orange' OR name LIKE 'Berlin')
474
+  (0.1ms) SELECT 1 FROM "tags" WHERE "tags"."name" = 'Trash' LIMIT 1
475
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Trash"]]
476
+  (0.1ms) SELECT 1 FROM "tags" WHERE "tags"."name" = 'Orange' LIMIT 1
477
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Orange"]]
478
+  (0.1ms) SELECT 1 FROM "tags" WHERE "tags"."name" = 'Berlin' LIMIT 1
479
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Berlin"]]
480
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
481
+ ActsAsTaggableOn::Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)
482
+  (0.2ms) SELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
483
+ SQL (0.9ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Sun, 04 Sep 2011 18:16:52 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
484
+  (0.2ms) SELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
485
+ SQL (0.6ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Sun, 04 Sep 2011 18:16:52 UTC +00:00], ["tag_id", 2], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
486
+  (0.1ms) SELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 3 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
487
+ SQL (0.6ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Sun, 04 Sep 2011 18:16:52 UTC +00:00], ["tag_id", 3], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
488
+ Redirected to http://localhost:3000/admin/saphira/files/mulleimer
489
+ Completed 302 Found in 5184ms
490
+
491
+
492
+ Started GET "/admin/saphira/files/mulleimer" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
493
+ 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:FileItem> at /Users/spieker/Sites/gems-projects/saphira/app/models/saphira/file_item.rb:13)
494
+ Processing by Saphira::FileItemsController#show as HTML
495
+ Parameters: {"id"=>"mulleimer"}
496
+ Saphira::FileItem Load (0.1ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'mulleimer' LIMIT 1
497
+ ActsAsTaggableOn::Tag Load (0.3ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
498
+ Saphira::FileItem Load (0.2ms) SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
499
+ Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (26.6ms)
500
+ Completed 200 OK in 50ms (Views: 34.5ms | ActiveRecord: 1.0ms)
501
+
502
+
503
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
504
+ Served asset /jquery.js - 304 Not Modified (0ms)
505
+
506
+
507
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
508
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
509
+
510
+
511
+ Started GET "/assets/saphira/application.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
512
+ Served asset /saphira/application.js - 304 Not Modified (0ms)
513
+
514
+
515
+ Started GET "/assets/saphira/file_items.css?body=1" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
516
+ Served asset /saphira/file_items.css - 304 Not Modified (0ms)
517
+
518
+
519
+ Started GET "/assets/saphira/file_items.js?body=1" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
520
+ Served asset /saphira/file_items.js - 304 Not Modified (0ms)
521
+
522
+
523
+ Started GET "/assets/saphira/application.css?body=1" for 127.0.0.1 at 2011-09-04 20:16:52 +0200
524
+ Served asset /saphira/application.css - 304 Not Modified (0ms)