unified_partials 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +57 -0
- data/app/views/attribute_presentation/_default.html.erb +1 -1
- data/lib/generators/erb/unified_partials/templates/_associated.html.erb +3 -0
- data/lib/generators/erb/unified_partials/templates/_default.html.erb +2 -0
- data/lib/generators/erb/unified_partials/templates/_heading.html.erb +1 -0
- data/lib/generators/erb/unified_partials/templates/_label.html.erb +1 -0
- data/lib/generators/erb/unified_partials/templates/_layout.html.erb +1 -0
- data/lib/generators/erb/unified_partials/unified_partials_generator.rb +43 -0
- data/lib/generators/haml/unified_partials/templates/_associated.html.haml +3 -0
- data/lib/generators/haml/unified_partials/templates/_default.html.haml +2 -0
- data/lib/generators/haml/unified_partials/templates/_heading.html.haml +1 -0
- data/lib/generators/haml/unified_partials/templates/_label.html.haml +1 -0
- data/lib/generators/haml/unified_partials/templates/_layout.html.haml +1 -0
- data/lib/generators/haml/unified_partials/unified_partials_generator.rb +16 -0
- data/lib/generators/unified_partials/install_generator.rb +9 -0
- data/lib/unified_partials/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +56 -248
- data/test/dummy/log/test.log +10 -342
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2afdbb3902a1be5d2f045cfc837903a3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a15e52e84502f9fceb7ea04020f65fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/64db420a3a172209bf0b734312a4888a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/67ff5689dfcb845e86b74aa2d787edef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/787b6a4c2386b5edf98f90508b85cc3d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b950c5d77d355ffc7f0edf748e04b138 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/haml-railtie.rb +19 -0
- data/test/throwaway/README.rdoc +28 -0
- data/test/throwaway/Rakefile +6 -0
- data/test/throwaway/app/assets/javascripts/application.js +13 -0
- data/test/throwaway/app/assets/javascripts/books.js +2 -0
- data/test/throwaway/app/assets/stylesheets/application.css +13 -0
- data/test/throwaway/app/assets/stylesheets/books.css +4 -0
- data/test/throwaway/app/controllers/application_controller.rb +5 -0
- data/test/throwaway/app/controllers/books_controller.rb +5 -0
- data/test/throwaway/app/helpers/application_helper.rb +2 -0
- data/test/throwaway/app/helpers/books_helper.rb +2 -0
- data/test/throwaway/app/models/book.rb +2 -0
- data/test/throwaway/app/views/attribute_presentation/_associated.html.erb +3 -0
- data/test/throwaway/app/views/attribute_presentation/_default.html.erb +2 -0
- data/test/throwaway/app/views/attribute_presentation/_heading.html.erb +1 -0
- data/test/throwaway/app/views/attribute_presentation/_label.html.erb +1 -0
- data/test/throwaway/app/views/attribute_presentation/_layout.html.erb +2 -0
- data/test/throwaway/app/views/books/index.html.erb +5 -0
- data/test/throwaway/app/views/layouts/application.html.erb +14 -0
- data/test/throwaway/bin/bundle +3 -0
- data/test/throwaway/bin/rails +4 -0
- data/test/throwaway/bin/rake +4 -0
- data/test/throwaway/config.ru +4 -0
- data/test/throwaway/config/application.rb +23 -0
- data/test/throwaway/config/boot.rb +5 -0
- data/test/throwaway/config/database.yml +25 -0
- data/test/throwaway/config/environment.rb +5 -0
- data/test/throwaway/config/environments/development.rb +29 -0
- data/test/throwaway/config/environments/production.rb +80 -0
- data/test/throwaway/config/environments/test.rb +36 -0
- data/test/throwaway/config/initializers/backtrace_silencers.rb +7 -0
- data/test/throwaway/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/throwaway/config/initializers/inflections.rb +16 -0
- data/test/throwaway/config/initializers/mime_types.rb +5 -0
- data/test/throwaway/config/initializers/secret_token.rb +12 -0
- data/test/throwaway/config/initializers/session_store.rb +3 -0
- data/test/throwaway/config/initializers/wrap_parameters.rb +14 -0
- data/test/throwaway/config/locales/en.yml +23 -0
- data/test/throwaway/config/routes.rb +57 -0
- data/test/throwaway/db/development.sqlite3 +0 -0
- data/test/throwaway/db/migrate/20131014134500_create_books.rb +10 -0
- data/test/throwaway/db/schema.rb +23 -0
- data/test/throwaway/db/seeds.rb +1 -0
- data/test/throwaway/db/test.sqlite3 +0 -0
- data/test/throwaway/log/development.log +107 -0
- data/test/throwaway/log/test.log +15 -0
- data/test/throwaway/public/404.html +58 -0
- data/test/throwaway/public/422.html +58 -0
- data/test/throwaway/public/500.html +57 -0
- data/test/throwaway/public/favicon.ico +0 -0
- data/test/throwaway/test/fixtures/books.yml +9 -0
- data/test/throwaway/test/views/index.html.erb_test.rb +14 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/2afdbb3902a1be5d2f045cfc837903a3 +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/5a15e52e84502f9fceb7ea04020f65fc +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/64db420a3a172209bf0b734312a4888a +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/67ff5689dfcb845e86b74aa2d787edef +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/787b6a4c2386b5edf98f90508b85cc3d +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/b950c5d77d355ffc7f0edf748e04b138 +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/throwaway/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/throwaway_haml/README.rdoc +28 -0
- data/test/throwaway_haml/Rakefile +6 -0
- data/test/throwaway_haml/app/assets/javascripts/application.js +13 -0
- data/test/throwaway_haml/app/assets/javascripts/books.js +2 -0
- data/test/throwaway_haml/app/assets/stylesheets/application.css +13 -0
- data/test/throwaway_haml/app/assets/stylesheets/books.css +4 -0
- data/test/throwaway_haml/app/controllers/application_controller.rb +5 -0
- data/test/throwaway_haml/app/controllers/books_controller.rb +5 -0
- data/test/throwaway_haml/app/helpers/application_helper.rb +2 -0
- data/test/throwaway_haml/app/helpers/books_helper.rb +2 -0
- data/test/throwaway_haml/app/models/book.rb +2 -0
- data/test/throwaway_haml/app/views/attribute_presentation/_associated.html.haml +3 -0
- data/test/throwaway_haml/app/views/attribute_presentation/_default.html.haml +2 -0
- data/test/throwaway_haml/app/views/attribute_presentation/_heading.html.haml +1 -0
- data/test/throwaway_haml/app/views/attribute_presentation/_label.html.haml +1 -0
- data/test/throwaway_haml/app/views/attribute_presentation/_layout.html.erb +2 -0
- data/test/throwaway_haml/app/views/attribute_presentation/_layout.html.haml +1 -0
- data/test/throwaway_haml/app/views/books/index.html.erb +5 -0
- data/test/throwaway_haml/app/views/layouts/application.html.erb +14 -0
- data/test/throwaway_haml/bin/bundle +3 -0
- data/test/throwaway_haml/bin/rails +4 -0
- data/test/throwaway_haml/bin/rake +4 -0
- data/test/throwaway_haml/config.ru +4 -0
- data/test/throwaway_haml/config/application.rb +23 -0
- data/test/throwaway_haml/config/boot.rb +5 -0
- data/test/throwaway_haml/config/database.yml +25 -0
- data/test/throwaway_haml/config/environment.rb +5 -0
- data/test/throwaway_haml/config/environments/development.rb +29 -0
- data/test/throwaway_haml/config/environments/production.rb +80 -0
- data/test/throwaway_haml/config/environments/test.rb +36 -0
- data/test/throwaway_haml/config/initializers/backtrace_silencers.rb +7 -0
- data/test/throwaway_haml/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/throwaway_haml/config/initializers/haml-railtie.rb +19 -0
- data/test/throwaway_haml/config/initializers/inflections.rb +16 -0
- data/test/throwaway_haml/config/initializers/mime_types.rb +5 -0
- data/test/throwaway_haml/config/initializers/secret_token.rb +12 -0
- data/test/throwaway_haml/config/initializers/session_store.rb +3 -0
- data/test/throwaway_haml/config/initializers/wrap_parameters.rb +14 -0
- data/test/throwaway_haml/config/locales/en.yml +23 -0
- data/test/throwaway_haml/config/routes.rb +57 -0
- data/test/throwaway_haml/db/development.sqlite3 +0 -0
- data/test/throwaway_haml/db/migrate/20131014134500_create_books.rb +10 -0
- data/test/throwaway_haml/db/schema.rb +23 -0
- data/test/throwaway_haml/db/seeds.rb +1 -0
- data/test/throwaway_haml/db/test.sqlite3 +0 -0
- data/test/throwaway_haml/log/development.log +107 -0
- data/test/throwaway_haml/log/test.log +15 -0
- data/test/throwaway_haml/public/404.html +58 -0
- data/test/throwaway_haml/public/422.html +58 -0
- data/test/throwaway_haml/public/500.html +57 -0
- data/test/throwaway_haml/public/favicon.ico +0 -0
- data/test/throwaway_haml/test/fixtures/books.yml +9 -0
- data/test/throwaway_haml/test/views/index.html.erb_test.rb +14 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/2afdbb3902a1be5d2f045cfc837903a3 +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/5a15e52e84502f9fceb7ea04020f65fc +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/64db420a3a172209bf0b734312a4888a +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/67ff5689dfcb845e86b74aa2d787edef +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/787b6a4c2386b5edf98f90508b85cc3d +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/b950c5d77d355ffc7f0edf748e04b138 +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/throwaway_haml/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +274 -3
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = '1365a3eff7edd9ebd6340317719cf76922b9bc0a00c3413c70c797e66c6cc77e771bdae90ce8758a3af40d93b9ca59e50b85d01aa06925e5413f5ec020de1b7c'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,57 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
get "books/index"
|
3
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
4
|
+
# See how all your routes lay out with "rake routes".
|
5
|
+
|
6
|
+
# You can have the root of your site routed with "root"
|
7
|
+
# root 'welcome#index'
|
8
|
+
|
9
|
+
# Example of regular route:
|
10
|
+
# get 'products/:id' => 'catalog#view'
|
11
|
+
|
12
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
13
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
14
|
+
|
15
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
16
|
+
# resources :products
|
17
|
+
|
18
|
+
# Example resource route with options:
|
19
|
+
# resources :products do
|
20
|
+
# member do
|
21
|
+
# get 'short'
|
22
|
+
# post 'toggle'
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# collection do
|
26
|
+
# get 'sold'
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Example resource route with sub-resources:
|
31
|
+
# resources :products do
|
32
|
+
# resources :comments, :sales
|
33
|
+
# resource :seller
|
34
|
+
# end
|
35
|
+
|
36
|
+
# Example resource route with more complex sub-resources:
|
37
|
+
# resources :products do
|
38
|
+
# resources :comments
|
39
|
+
# resources :sales do
|
40
|
+
# get 'recent', on: :collection
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Example resource route with concerns:
|
45
|
+
# concern :toggleable do
|
46
|
+
# post 'toggle'
|
47
|
+
# end
|
48
|
+
# resources :posts, concerns: :toggleable
|
49
|
+
# resources :photos, concerns: :toggleable
|
50
|
+
|
51
|
+
# Example resource route within a namespace:
|
52
|
+
# namespace :admin do
|
53
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
54
|
+
# # (app/controllers/admin/products_controller.rb)
|
55
|
+
# resources :products
|
56
|
+
# end
|
57
|
+
end
|
Binary file
|
@@ -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,107 @@
|
|
1
|
+
[1m[36m (56.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (15.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateBooks (20131014134500)
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "author" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131014134500"]]
|
8
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
9
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12
|
+
[1m[36mSQL (6.5ms)[0m [1mINSERT INTO "books" ("author", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["author", "God"], ["created_at", Mon, 14 Oct 2013 20:22:38 UTC +00:00], ["title", "The Bible"], ["updated_at", Mon, 14 Oct 2013 20:22:38 UTC +00:00]]
|
13
|
+
[1m[35m (1.2ms)[0m commit transaction
|
14
|
+
|
15
|
+
|
16
|
+
Started GET "/books/index" for 127.0.0.1 at 2013-10-14 16:22:59 -0400
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
+
Processing by BooksController#index as HTML
|
19
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
|
20
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
|
21
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (1.2ms)
|
22
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
|
23
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.8ms)
|
24
|
+
Rendered books/index.html.erb within layouts/application (38.6ms)
|
25
|
+
Completed 200 OK in 105ms (Views: 91.7ms | ActiveRecord: 0.5ms)
|
26
|
+
|
27
|
+
|
28
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 16:22:59 -0400
|
29
|
+
|
30
|
+
|
31
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 16:22:59 -0400
|
32
|
+
|
33
|
+
|
34
|
+
Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 16:22:59 -0400
|
35
|
+
|
36
|
+
|
37
|
+
Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 16:22:59 -0400
|
38
|
+
|
39
|
+
|
40
|
+
Started GET "/books/index" for 127.0.0.1 at 2013-10-14 16:25:09 -0400
|
41
|
+
Processing by BooksController#index as HTML
|
42
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1[0m
|
43
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
|
44
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (1.0ms)
|
45
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.2ms)
|
46
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.7ms)
|
47
|
+
Rendered books/index.html.erb within layouts/application (5.7ms)
|
48
|
+
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.2ms)
|
49
|
+
|
50
|
+
|
51
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 16:25:09 -0400
|
52
|
+
|
53
|
+
|
54
|
+
Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 16:25:09 -0400
|
55
|
+
|
56
|
+
|
57
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 16:25:09 -0400
|
58
|
+
|
59
|
+
|
60
|
+
Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 16:25:09 -0400
|
61
|
+
|
62
|
+
|
63
|
+
Started GET "/books/index" for 127.0.0.1 at 2013-10-14 16:25:18 -0400
|
64
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65
|
+
Processing by BooksController#index as HTML
|
66
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
|
67
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
|
68
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (1.2ms)
|
69
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
|
70
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (1.2ms)
|
71
|
+
Rendered books/index.html.erb within layouts/application (35.0ms)
|
72
|
+
Completed 200 OK in 83ms (Views: 68.0ms | ActiveRecord: 0.6ms)
|
73
|
+
|
74
|
+
|
75
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 16:25:19 -0400
|
76
|
+
|
77
|
+
|
78
|
+
Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 16:25:19 -0400
|
79
|
+
|
80
|
+
|
81
|
+
Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 16:25:19 -0400
|
82
|
+
|
83
|
+
|
84
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 16:25:19 -0400
|
85
|
+
|
86
|
+
|
87
|
+
Started GET "/books/index" for 127.0.0.1 at 2013-10-14 16:29:02 -0400
|
88
|
+
Processing by BooksController#index as HTML
|
89
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1[0m
|
90
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.2ms)
|
91
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (1.2ms)
|
92
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
|
93
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
|
94
|
+
Rendered books/index.html.erb within layouts/application (6.3ms)
|
95
|
+
Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.2ms)
|
96
|
+
|
97
|
+
|
98
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-14 16:29:02 -0400
|
99
|
+
|
100
|
+
|
101
|
+
Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2013-10-14 16:29:02 -0400
|
102
|
+
|
103
|
+
|
104
|
+
Started GET "/assets/books.js?body=1" for 127.0.0.1 at 2013-10-14 16:29:02 -0400
|
105
|
+
|
106
|
+
|
107
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-14 16:29:02 -0400
|
@@ -0,0 +1,15 @@
|
|
1
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2
|
+
----------------------
|
3
|
+
IndexTest: test_layout
|
4
|
+
----------------------
|
5
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.9ms)
|
6
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (4.1ms)
|
7
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
|
8
|
+
Rendered /opt/boxen/repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.8ms)
|
9
|
+
Rendered books/index.html.erb (35.1ms)
|
10
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
-------------------------------
|
13
|
+
UnifiedPartialsTest: test_truth
|
14
|
+
-------------------------------
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|