locale_dating 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +94 -0
  3. data/Rakefile +37 -0
  4. data/lib/locale_dating/version.rb +3 -0
  5. data/lib/locale_dating.rb +195 -0
  6. data/lib/tasks/locale_dating_tasks.rake +4 -0
  7. data/test/dummy/Rakefile +7 -0
  8. data/test/dummy/app/assets/javascripts/application.js +9 -0
  9. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  10. data/test/dummy/app/controllers/application_controller.rb +3 -0
  11. data/test/dummy/app/helpers/application_helper.rb +2 -0
  12. data/test/dummy/app/models/person.rb +21 -0
  13. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  14. data/test/dummy/config/application.rb +45 -0
  15. data/test/dummy/config/boot.rb +10 -0
  16. data/test/dummy/config/database.yml +25 -0
  17. data/test/dummy/config/environment.rb +5 -0
  18. data/test/dummy/config/environments/development.rb +30 -0
  19. data/test/dummy/config/environments/production.rb +60 -0
  20. data/test/dummy/config/environments/test.rb +39 -0
  21. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  22. data/test/dummy/config/initializers/inflections.rb +10 -0
  23. data/test/dummy/config/initializers/mime_types.rb +5 -0
  24. data/test/dummy/config/initializers/secret_token.rb +7 -0
  25. data/test/dummy/config/initializers/session_store.rb +8 -0
  26. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  27. data/test/dummy/config/locales/en.yml +220 -0
  28. data/test/dummy/config/routes.rb +58 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/db/development.sqlite3 +0 -0
  31. data/test/dummy/db/migrate/20120227052855_create_people.rb +12 -0
  32. data/test/dummy/db/schema.rb +25 -0
  33. data/test/dummy/db/test.sqlite3 +0 -0
  34. data/test/dummy/log/development.log +59 -0
  35. data/test/dummy/log/test.log +0 -0
  36. data/test/dummy/public/404.html +26 -0
  37. data/test/dummy/public/422.html +26 -0
  38. data/test/dummy/public/500.html +26 -0
  39. data/test/dummy/public/favicon.ico +0 -0
  40. data/test/dummy/script/rails +6 -0
  41. data/test/dummy/test/fixtures/people.yml +13 -0
  42. data/test/dummy/test/unit/person_test.rb +256 -0
  43. data/test/locale_dating_test.rb +7 -0
  44. data/test/test_helper.rb +10 -0
  45. metadata +178 -0
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '54f65b2da4ec467ad5567dec7584bc4dfe502303c82cf8baaf826fa92f54ab22d6234b3798366e4c3cc6c86c7355803b9dd98e8fc2b92e366af7f6979435c151'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,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]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,220 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ date:
6
+ abbr_day_names:
7
+ - Sun
8
+ - Mon
9
+ - Tue
10
+ - Wed
11
+ - Thu
12
+ - Fri
13
+ - Sat
14
+ abbr_month_names:
15
+ -
16
+ - Jan
17
+ - Feb
18
+ - Mar
19
+ - Apr
20
+ - May
21
+ - Jun
22
+ - Jul
23
+ - Aug
24
+ - Sep
25
+ - Oct
26
+ - Nov
27
+ - Dec
28
+ day_names:
29
+ - Sunday
30
+ - Monday
31
+ - Tuesday
32
+ - Wednesday
33
+ - Thursday
34
+ - Friday
35
+ - Saturday
36
+ formats:
37
+ # default: ! '%Y-%m-%d'
38
+ default: '%m/%d/%Y'
39
+ short: '%m/%d/%Y'
40
+ long: ! '%Y-%m-%d'
41
+ ymd: ! '%Y-%m-%d'
42
+ # short: ! '%Y-%m-%d'
43
+ # long: ! '%B %d, %Y'
44
+ # short: ! '%b %d'
45
+ month_names:
46
+ -
47
+ - January
48
+ - February
49
+ - March
50
+ - April
51
+ - May
52
+ - June
53
+ - July
54
+ - August
55
+ - September
56
+ - October
57
+ - November
58
+ - December
59
+ order:
60
+ - :month
61
+ - :day
62
+ - :year
63
+ datetime:
64
+ formats:
65
+ default: '%m/%d/%Y'
66
+ short: '%m/%d/%Y'
67
+ long: ! '%m/%d/%Y %I:%M%p'
68
+ distance_in_words:
69
+ about_x_hours:
70
+ one: about 1 hour
71
+ other: about %{count} hours
72
+ about_x_months:
73
+ one: about 1 month
74
+ other: about %{count} months
75
+ about_x_years:
76
+ one: about 1 year
77
+ other: about %{count} years
78
+ almost_x_years:
79
+ one: almost 1 year
80
+ other: almost %{count} years
81
+ half_a_minute: half a minute
82
+ less_than_x_minutes:
83
+ one: less than a minute
84
+ other: less than %{count} minutes
85
+ less_than_x_seconds:
86
+ one: less than 1 second
87
+ other: less than %{count} seconds
88
+ over_x_years:
89
+ one: over 1 year
90
+ other: over %{count} years
91
+ x_days:
92
+ one: 1 day
93
+ other: ! '%{count} days'
94
+ x_minutes:
95
+ one: 1 minute
96
+ other: ! '%{count} minutes'
97
+ x_months:
98
+ one: 1 month
99
+ other: ! '%{count} months'
100
+ x_seconds:
101
+ one: 1 second
102
+ other: ! '%{count} seconds'
103
+ prompts:
104
+ day: Day
105
+ hour: Hour
106
+ minute: Minute
107
+ month: Month
108
+ second: Seconds
109
+ year: Year
110
+ activerecord: # <-- added this level. Invalid record (validation failures) resulted in translation not being found (Rails 3.1.3)
111
+ errors:
112
+ format: ! '%{attribute} %{message}'
113
+ messages:
114
+ accepted: must be accepted
115
+ blank: can't be blank
116
+ confirmation: doesn't match confirmation
117
+ empty: can't be empty
118
+ equal_to: must be equal to %{count}
119
+ even: must be even
120
+ exclusion: is reserved
121
+ greater_than: must be greater than %{count}
122
+ greater_than_or_equal_to: must be greater than or equal to %{count}
123
+ inclusion: is not included in the list
124
+ invalid: is invalid
125
+ less_than: must be less than %{count}
126
+ less_than_or_equal_to: must be less than or equal to %{count}
127
+ not_a_number: is not a number
128
+ not_an_integer: must be an integer
129
+ odd: must be odd
130
+ record_invalid: ! 'Validation failed: %{errors}'
131
+ taken: has already been taken
132
+ too_long:
133
+ one: is too long (maximum is 1 character)
134
+ other: is too long (maximum is %{count} characters)
135
+ too_short:
136
+ one: is too short (minimum is 1 character)
137
+ other: is too short (minimum is %{count} characters)
138
+ wrong_length:
139
+ one: is the wrong length (should be 1 character)
140
+ other: is the wrong length (should be %{count} characters)
141
+ # Date related settings (validates_timeliness)
142
+ invalid_date: "is not a valid date"
143
+ invalid_time: "is not a valid time"
144
+ invalid_datetime: "is not a valid datetime"
145
+ is_at: "must be at %{restriction}"
146
+ before: "must be before %{restriction}"
147
+ on_or_before: "must be on or before %{restriction}"
148
+ after: "must be after %{restriction}"
149
+ on_or_after: "must be on or after %{restriction}"
150
+ template:
151
+ body: ! 'There were problems with the following fields:'
152
+ header:
153
+ one: 1 error prohibited this %{model} from being saved
154
+ other: ! '%{count} errors prohibited this %{model} from being saved'
155
+ helpers:
156
+ select:
157
+ prompt: Please select
158
+ submit:
159
+ create: Create %{model}
160
+ submit: Save %{model}
161
+ update: Update %{model}
162
+ number:
163
+ currency:
164
+ format:
165
+ delimiter: ! ','
166
+ format: ! '%u%n'
167
+ precision: 2
168
+ separator: .
169
+ significant: false
170
+ strip_insignificant_zeros: false
171
+ unit: $
172
+ format:
173
+ delimiter: ! ','
174
+ precision: 3
175
+ separator: .
176
+ significant: false
177
+ strip_insignificant_zeros: false
178
+ human:
179
+ decimal_units:
180
+ format: ! '%n %u'
181
+ units:
182
+ billion: Billion
183
+ million: Million
184
+ quadrillion: Quadrillion
185
+ thousand: Thousand
186
+ trillion: Trillion
187
+ unit: ''
188
+ format:
189
+ delimiter: ''
190
+ precision: 3
191
+ significant: true
192
+ strip_insignificant_zeros: true
193
+ storage_units:
194
+ format: ! '%n %u'
195
+ units:
196
+ byte:
197
+ one: Byte
198
+ other: Bytes
199
+ gb: GB
200
+ kb: KB
201
+ mb: MB
202
+ tb: TB
203
+ percentage:
204
+ format:
205
+ delimiter: ''
206
+ precision:
207
+ format:
208
+ delimiter: ''
209
+ support:
210
+ array:
211
+ last_word_connector: ! ', and '
212
+ two_words_connector: ! ' and '
213
+ words_connector: ! ', '
214
+ time:
215
+ am: am
216
+ formats:
217
+ default: ! '%m/%d/%Y %I:%M%p'
218
+ long: ! '%m/%d/%Y %I:%M%p'
219
+ short: ! '%I:%M%p'
220
+ pm: pm
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
Binary file
@@ -0,0 +1,12 @@
1
+ class CreatePeople < ActiveRecord::Migration
2
+ def change
3
+ create_table :people do |t|
4
+ t.string :name
5
+ t.date :born_on
6
+ t.datetime :last_seen_at
7
+ t.time :start_time
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,25 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20120227052855) do
15
+
16
+ create_table "people", :force => true do |t|
17
+ t.string "name"
18
+ t.date "born_on"
19
+ t.datetime "last_seen_at"
20
+ t.time "start_time"
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
+ end
24
+
25
+ end
Binary file
@@ -0,0 +1,59 @@
1
+  (0.0ms) select sqlite_version(*)
2
+  (233.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.1ms) PRAGMA index_list("schema_migrations")
4
+  (247.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreatePeople (20120227052855)
7
+  (0.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime)
8
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120227052855')
9
+  (0.2ms) select sqlite_version(*)
10
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
11
+  (0.0ms) PRAGMA index_list("people")
12
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
13
+  (0.2ms) select sqlite_version(*)
14
+  (331.0ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime) 
15
+  (266.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
16
+  (0.1ms) PRAGMA index_list("schema_migrations")
17
+  (339.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
+  (0.2ms) SELECT version FROM "schema_migrations"
19
+  (219.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120227052855')
20
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
21
+  (0.1ms) select sqlite_version(*)
22
+  (231.7ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime) 
23
+  (258.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
24
+  (0.1ms) PRAGMA index_list("schema_migrations")
25
+  (293.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
26
+  (0.2ms) SELECT version FROM "schema_migrations"
27
+  (264.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120227052855')
28
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
29
+  (0.2ms) select sqlite_version(*)
30
+  (238.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime) 
31
+  (233.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
32
+  (0.1ms) PRAGMA index_list("schema_migrations")
33
+  (216.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34
+  (0.2ms) SELECT version FROM "schema_migrations"
35
+  (246.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120227052855')
36
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
37
+  (0.2ms) select sqlite_version(*)
38
+  (209.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime) 
39
+  (233.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
40
+  (0.1ms) PRAGMA index_list("schema_migrations")
41
+  (284.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
42
+  (0.2ms) SELECT version FROM "schema_migrations"
43
+  (249.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120227052855')
44
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
45
+  (0.2ms) select sqlite_version(*)
46
+  (221.0ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime) 
47
+  (208.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
48
+  (0.1ms) PRAGMA index_list("schema_migrations")
49
+  (258.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50
+  (0.2ms) SELECT version FROM "schema_migrations"
51
+  (206.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120227052855')
52
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
53
+  (0.2ms) select sqlite_version(*)
54
+  (311.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "born_on" date, "last_seen_at" datetime, "start_time" time, "created_at" datetime, "updated_at" datetime) 
55
+  (185.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
56
+  (0.1ms) PRAGMA index_list("schema_migrations")
57
+  (282.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (0.2ms) SELECT version FROM "schema_migrations"
59
+  (206.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120227052855')
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,13 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ name: MyString
5
+ born_on: 2012-02-26
6
+ last_seen_at: 2012-02-26 22:28:55
7
+ start_time: 2012-02-26 22:28:55
8
+
9
+ two:
10
+ name: MyString
11
+ born_on: 2012-02-26
12
+ last_seen_at: 2012-02-26 22:28:55
13
+ start_time: 2012-02-26 22:28:55