unified_partials 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/app/helpers/unified_partial_helper.rb +23 -0
  5. data/app/views/attribute_presentation/_associated.html.erb +3 -0
  6. data/app/views/attribute_presentation/_default.html.erb +2 -0
  7. data/app/views/attribute_presentation/_heading.html.erb +1 -0
  8. data/app/views/attribute_presentation/_label.html.erb +1 -0
  9. data/app/views/attribute_presentation/_layout.html.erb +1 -0
  10. data/lib/tasks/unified_partials_tasks.rake +4 -0
  11. data/lib/unified_partials/engine.rb +4 -0
  12. data/lib/unified_partials/version.rb +3 -0
  13. data/lib/unified_partials.rb +4 -0
  14. data/test/dummy/README.rdoc +28 -0
  15. data/test/dummy/Rakefile +6 -0
  16. data/test/dummy/app/assets/javascripts/application.js +13 -0
  17. data/test/dummy/app/assets/javascripts/books.js +2 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  19. data/test/dummy/app/assets/stylesheets/books.css +4 -0
  20. data/test/dummy/app/controllers/application_controller.rb +5 -0
  21. data/test/dummy/app/controllers/books_controller.rb +5 -0
  22. data/test/dummy/app/helpers/application_helper.rb +2 -0
  23. data/test/dummy/app/helpers/books_helper.rb +2 -0
  24. data/test/dummy/app/models/book.rb +2 -0
  25. data/test/dummy/app/views/attribute_presentation/_layout.html.erb +2 -0
  26. data/test/dummy/app/views/books/index.html.erb +5 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/bin/bundle +3 -0
  29. data/test/dummy/bin/rails +4 -0
  30. data/test/dummy/bin/rake +4 -0
  31. data/test/dummy/config/application.rb +23 -0
  32. data/test/dummy/config/boot.rb +5 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +29 -0
  36. data/test/dummy/config/environments/production.rb +80 -0
  37. data/test/dummy/config/environments/test.rb +36 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/test/dummy/config/initializers/inflections.rb +16 -0
  41. data/test/dummy/config/initializers/mime_types.rb +5 -0
  42. data/test/dummy/config/initializers/secret_token.rb +12 -0
  43. data/test/dummy/config/initializers/session_store.rb +3 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +57 -0
  47. data/test/dummy/config.ru +4 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/migrate/20131014134500_create_books.rb +10 -0
  50. data/test/dummy/db/schema.rb +23 -0
  51. data/test/dummy/db/seeds.rb +1 -0
  52. data/test/dummy/db/test.sqlite3 +0 -0
  53. data/test/dummy/log/development.log +299 -0
  54. data/test/dummy/log/test.log +362 -0
  55. data/test/dummy/public/404.html +58 -0
  56. data/test/dummy/public/422.html +58 -0
  57. data/test/dummy/public/500.html +57 -0
  58. data/test/dummy/public/favicon.ico +0 -0
  59. data/test/dummy/test/fixtures/books.yml +9 -0
  60. data/test/dummy/test/views/index.html.erb_test.rb +14 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/2afdbb3902a1be5d2f045cfc837903a3 +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/5a15e52e84502f9fceb7ea04020f65fc +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/64db420a3a172209bf0b734312a4888a +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/67ff5689dfcb845e86b74aa2d787edef +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/787b6a4c2386b5edf98f90508b85cc3d +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/b950c5d77d355ffc7f0edf748e04b138 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  73. data/test/test_helper.rb +15 -0
  74. data/test/unified_partials_test.rb +7 -0
  75. metadata +206 -0
Binary file
@@ -0,0 +1,10 @@
1
+ class CreateBooks < ActiveRecord::Migration
2
+ def change
3
+ create_table :books do |t|
4
+ t.string :title
5
+ t.string :author
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131014134500) do
15
+
16
+ create_table "books", force: true do |t|
17
+ t.string "title"
18
+ t.string "author"
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
+ end
22
+
23
+ end
@@ -0,0 +1 @@
1
+ Book.create title: "The Bible", author: "God"
File without changes
@@ -0,0 +1,299 @@
1
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateBooks (20131014134500)
5
+  (0.3ms) begin transaction
6
+  (0.4ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "author" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131014134500"]]
8
+  (1.5ms) commit transaction
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+  (0.1ms) begin transaction
11
+ SQL (2.6ms) INSERT INTO "books" ("author", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["author", "God"], ["created_at", Mon, 14 Oct 2013 13:46:56 UTC +00:00], ["title", "The Bible"], ["updated_at", Mon, 14 Oct 2013 13:46:56 UTC +00:00]]
12
+  (1.2ms) commit transaction
13
+
14
+
15
+ Started GET "/" for 127.0.0.1 at 2013-10-14 10:05:15 -0400
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ Processing by Rails::WelcomeController#index as HTML
18
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/railties-4.0.0/lib/rails/templates/rails/welcome/index.html.erb (1.3ms)
19
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
20
+
21
+
22
+ Started GET "/books/" for 127.0.0.1 at 2013-10-14 10:05:32 -0400
23
+
24
+ ActionController::RoutingError (No route matches [GET] "/books"):
25
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
26
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
27
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
28
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
29
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
30
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
31
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
32
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
33
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
34
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
35
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
36
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
37
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
38
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
39
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
40
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
41
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
42
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
43
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
44
+ /Users/samsm/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
45
+ /Users/samsm/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
46
+ /Users/samsm/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
47
+
48
+
49
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
50
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
51
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.3ms)
52
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (19.4ms)
53
+
54
+
55
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 10:05:35 -0400
56
+ Processing by BooksController#index as HTML
57
+ Book Load (0.1ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
58
+ Rendered books/index.html.erb within layouts/application (29.7ms)
59
+ Completed 500 Internal Server Error in 48ms
60
+
61
+ ActionView::Template::Error (undefined method `attribute_display' for #<#<Class:0x007f8a36b28d98>:0x007f8a36b28168>):
62
+ 1: <h1>Books#index</h1>
63
+ 2: <p>Find me in app/views/books/index.html.erb</p>
64
+ 3:
65
+ 4: <%= attribute_display(@book, :title, with: :heading) %>
66
+ 5: <%= attribute_display(@book, :author) %>
67
+ app/views/books/index.html.erb:4:in `_app_views_books_index_html_erb__1943258821798331801_70115799963780'
68
+
69
+
70
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
71
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (18.1ms)
72
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (26.9ms)
73
+
74
+
75
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 10:51:33 -0400
76
+ Processing by BooksController#index as HTML
77
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
78
+ Rendered books/index.html.erb within layouts/application (0.5ms)
79
+ Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.2ms)
80
+
81
+
82
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 10:51:33 -0400
83
+
84
+
85
+ Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 10:51:33 -0400
86
+
87
+
88
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 10:51:33 -0400
89
+
90
+
91
+ Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 10:51:33 -0400
92
+
93
+
94
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 10:52:10 -0400
95
+ Processing by BooksController#index as HTML
96
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
97
+ Rendered books/index.html.erb within layouts/application (1.5ms)
98
+ Completed 500 Internal Server Error in 4ms
99
+
100
+ ActionView::Template::Error (Missing partial attribute_presentation/label with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
101
+ * "/Users/samsm/Repositories/mine/unified_partials/test/dummy/app/views"
102
+ ):
103
+ 1: <h1>Books#index</h1>
104
+ 2: <p>Find me in app/views/books/index.html.erb</p>
105
+ 3:
106
+ 4: <%= render "attribute_presentation/label", locals: {} %>
107
+ 5:
108
+ 6: <% if false %>
109
+ 7: <%= attribute_display(@book, :title, with: :heading) %>
110
+ app/views/books/index.html.erb:4:in `_app_views_books_index_html_erb__1943258821798331801_70115777794740'
111
+
112
+
113
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
114
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
115
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (9.3ms)
116
+
117
+
118
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 10:55:05 -0400
119
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
120
+ Processing by BooksController#index as HTML
121
+ Book Load (0.1ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
122
+ Rendered books/index.html.erb within layouts/application (5.4ms)
123
+ Completed 500 Internal Server Error in 27ms
124
+
125
+ ActionView::Template::Error (Missing partial attribute_presentation/label with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
126
+ * "/Users/samsm/Repositories/mine/unified_partials/test/dummy/app/views"
127
+ * "/Users/samsm/Repositories/mine/unified_partials/app/views"
128
+ ):
129
+ 1: <h1>Books#index</h1>
130
+ 2: <p>Find me in app/views/books/index.html.erb</p>
131
+ 3:
132
+ 4: <%= render "attribute_presentation/label", locals: {} %>
133
+ 5:
134
+ 6: <% if false %>
135
+ 7: <%= attribute_display(@book, :title, with: :heading) %>
136
+ app/views/books/index.html.erb:4:in `_app_views_books_index_html_erb___44167171928417914_70289191771240'
137
+
138
+
139
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
140
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (20.6ms)
141
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (28.8ms)
142
+
143
+
144
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 10:55:46 -0400
145
+ Processing by BooksController#index as HTML
146
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
147
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.4ms)
148
+ Rendered books/index.html.erb within layouts/application (1.3ms)
149
+ Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.2ms)
150
+
151
+
152
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 10:55:46 -0400
153
+
154
+
155
+ Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 10:55:46 -0400
156
+
157
+
158
+ Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 10:55:46 -0400
159
+
160
+
161
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 10:55:46 -0400
162
+
163
+
164
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 10:56:13 -0400
165
+ Processing by BooksController#index as HTML
166
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
167
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
168
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.3ms)
169
+ Rendered books/index.html.erb within layouts/application (3.9ms)
170
+ Completed 500 Internal Server Error in 7ms
171
+
172
+ ActionView::Template::Error (Missing partial attribute_presentation/heading with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
173
+ * "/Users/samsm/Repositories/mine/unified_partials/test/dummy/app/views"
174
+ * "/Users/samsm/Repositories/mine/unified_partials/app/views"
175
+ ):
176
+ 4: <%= render "attribute_presentation/label", locals: {} %>
177
+ 5:
178
+ 6: <% if true %>
179
+ 7: <%= attribute_display(@book, :title, with: :heading) %>
180
+ 8: <%= attribute_display(@book, :author) %>
181
+ 9: <% end %>
182
+ app/views/books/index.html.erb:7:in `_app_views_books_index_html_erb___44167171928417914_70289167774520'
183
+
184
+
185
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
186
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
187
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.9ms)
188
+
189
+
190
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 11:11:18 -0400
191
+ Processing by BooksController#index as HTML
192
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
193
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (6.8ms)
194
+ Rendered books/index.html.erb within layouts/application (7.8ms)
195
+ Completed 500 Internal Server Error in 10ms
196
+
197
+ ActionView::Template::Error (undefined local variable or method `name' for #<#<Class:0x007fdaf4998398>:0x007fdaf4ac9690>):
198
+ 1: <strong><%= "#{name.to_s.titleize}:" %>
199
+ app/views/books/index.html.erb:4:in `_app_views_books_index_html_erb___44167171928417914_70289167774520'
200
+
201
+
202
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
203
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
204
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.1ms)
205
+
206
+
207
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 11:11:32 -0400
208
+ Processing by BooksController#index as HTML
209
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
210
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (5.5ms)
211
+ Rendered books/index.html.erb within layouts/application (6.9ms)
212
+ Completed 500 Internal Server Error in 9ms
213
+
214
+ ActionView::Template::Error (undefined local variable or method `name' for #<#<Class:0x007fdaf4998398>:0x007fdaf26442c0>):
215
+ 1: <strong><%= "#{name.to_s.titleize}:" %>
216
+ app/views/books/index.html.erb:4:in `_app_views_books_index_html_erb___44167171928417914_70289173147420'
217
+
218
+
219
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
220
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
221
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (9.1ms)
222
+
223
+
224
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 11:11:53 -0400
225
+ Processing by BooksController#index as HTML
226
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
227
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
228
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
229
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (0.7ms)
230
+ Rendered books/index.html.erb within layouts/application (4.6ms)
231
+ Completed 500 Internal Server Error in 7ms
232
+
233
+ ActionView::Template::Error (Missing partial attribute_presentation/layout with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
234
+ * "/Users/samsm/Repositories/mine/unified_partials/test/dummy/app/views"
235
+ * "/Users/samsm/Repositories/mine/unified_partials/app/views"
236
+ ):
237
+ 4: <%= render "attribute_presentation/label", {name: "hi there"} %>
238
+ 5:
239
+ 6: <% if true %>
240
+ 7: <%= attribute_display(@book, :title, with: :heading) %>
241
+ 8: <%= attribute_display(@book, :author) %>
242
+ 9: <% end %>
243
+ app/views/books/index.html.erb:7:in `_app_views_books_index_html_erb___44167171928417914_70289192015800'
244
+
245
+
246
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
247
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
248
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (9.4ms)
249
+
250
+
251
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 11:12:38 -0400
252
+ Processing by BooksController#index as HTML
253
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
254
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.2ms)
255
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
256
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (1.3ms)
257
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
258
+ Rendered books/index.html.erb within layouts/application (6.3ms)
259
+ Completed 500 Internal Server Error in 9ms
260
+
261
+ ActionView::Template::Error (Missing partial attribute_presentation/default with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
262
+ * "/Users/samsm/Repositories/mine/unified_partials/test/dummy/app/views"
263
+ * "/Users/samsm/Repositories/mine/unified_partials/app/views"
264
+ ):
265
+ 5:
266
+ 6: <% if true %>
267
+ 7: <%= attribute_display(@book, :title, with: :heading) %>
268
+ 8: <%= attribute_display(@book, :author) %>
269
+ 9: <% end %>
270
+ app/views/books/index.html.erb:8:in `_app_views_books_index_html_erb___44167171928417914_70289192015800'
271
+
272
+
273
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (18.8ms)
274
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
275
+ Rendered /Users/samsm/.rvm/gems/ruby-2.0.0-p247@unified_partials/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (27.0ms)
276
+
277
+
278
+ Started GET "/books/index" for 127.0.0.1 at 2013-10-14 11:13:05 -0400
279
+ Processing by BooksController#index as HTML
280
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
281
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.2ms)
282
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
283
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (0.8ms)
284
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
285
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (1.1ms)
286
+ Rendered books/index.html.erb within layouts/application (6.4ms)
287
+ Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms)
288
+
289
+
290
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 11:13:05 -0400
291
+
292
+
293
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 11:13:05 -0400
294
+
295
+
296
+ Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 11:13:05 -0400
297
+
298
+
299
+ Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 11:13:05 -0400