controller_scaffolding 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/lib/controller_scaffolding.rb +1 -0
- data/lib/controller_scaffolding/version.rb +1 -1
- data/lib/generators/controller/controller_scaffolding_generator.rb +2 -2
- data/lib/generators/haml/controller/controller_scaffolding_generator.rb +37 -12
- data/lib/templates/haml/controller/_form.html.haml +5 -0
- data/test/dummy/app/models/schedule.rb +2 -0
- data/test/dummy/app/models/unsearchable.rb +2 -0
- data/test/dummy/config/locales/en.yml +8 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141013173403_create_unsearchables.rb +10 -0
- data/test/dummy/db/schema.rb +18 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +266 -0
- data/test/dummy/log/test.log +49954 -0
- data/test/dummy/spec/requests/datepicker_spec.rb +93 -0
- data/test/dummy/spec/requests/people_spec.rb +2 -3
- data/test/dummy/tmp/cache/assets/development/sprockets/00d7a043c9882a17a07b510906102001 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/025c11a67b36bd30f651d16a98770a0e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/03fbafbc59d06318c1bdf9bd0bd0be42 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0909ebfb7797f27b884744b7b01e9d23 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/09d47de9952b122a7bc234d427dd8416 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d0b7b8974da0b4cb0a257c744a885c9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0e428be3345c68c21fa16efd1df40a18 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f4faea5e458e5336a34d5bdf730f92b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/10484f9ab8bf3cd1b30a63a55b15e6b2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a3c6a30280d9edd208e090bd63e93f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a8f20ce64fdfd60ba1664aeb4ddb4b6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1dc2824e4f69b5f787cc0b33a280e1f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e8215f994051001a53fb42a172471f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2e8fbe25c4d3ab5d0233fc6e0b34f944 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2ec229db49fb53a9c0b9d2bdafe26708 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/302cd42bc3aefb54ae8daa5903bb0f85 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3b55b2f606d39fcea38795fe22cb1794 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3bf4228d47944efe962d4a095debc826 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3e343bb2d38b4857d5b4833b49a1e53b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4179c631f26234eef3666b9ab8e33b50 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/41ff3aa0f7f4df2c318f1b431119cfda +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/425042170630b86b32ce66d969f8bb11 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4b3ab02bbe0c24724a88f9fe2645aecd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4df29d52dd5decae9155fc42aa25673a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e494dd03a8f6da76e5b75b4fd4a0450 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5889062dc9b0cf6f2d8cf419b85a12c6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e72fbc4e8fdea7dafb782aed341db89 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/623872c195c5a722209120a9d715b9ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/648c2e4578a1b3733059887e5541a92a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69a540a9299d8fddcfec9738415e99a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a3e7bf6ad751366088daebdc6d16e99 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6b137bb6a6b172141b5e6ec921595037 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c9f9111f4720199154c9dcf4423aa62 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6de6ba61e01e7c63db9d1beab694f3f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6f68523d4752423dac2ad870dd947804 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6fc862535cdfd5840d530e396c32c4e8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/71123653cb35ff1e9af67e468d486fca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7885b079c6324c6726f25fc54bf5fba5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/794057314c85426cbefcd2d3f6dd714c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b3b5b9639a0645b8006aae3f7739bba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8005f718a98e853a588d68f94210cbb4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c0b04415ee487129c0d2bc8b098fb8c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8e608c74df0c65a289387e25a3881ef6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/909ee8c2f213895a2bcdb3fd0410ec21 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/951aab6570b6ec758fe39cd50af2ccff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/951e49f97121a9d4b84d310643cedbb0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/976f01268d11ebdabaad471bb54bf9cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/97cd9891aebe543e0d25252357d04b08 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/991d9baf4c0665d4114d00882965f72c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dfd4b1a01f3051eab1f5917c3b7e140 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a1043f9e3ea288a30035e94cf9a67ae2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a261ba7edd58d2286bf4f542f22b0959 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a43437e9ef5f99a653ec0315955404c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a60a385cdc9d722482200e35192bb252 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a89670e758589b116b4e8ae21b1d9a46 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/afbb38de8b31c6e1f62cb960058528bd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b2daea6e64e32ec6991cd9fe04327225 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b891a3270c6fd4e6ab86bc044d7d1f6f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b90d47dd376cc93910ce502d6a2bf74f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bcfd3524949b4a0cb88f13cf3b474ebe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/be66b830f93ab21d749294d1cc37b7be +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ccc4652abdcade4e256e02e457bb1117 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ccd96591ad1431c8d01f6eeeee697951 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ce412b6008418ae47eacde6edd282246 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d19c7eeadbbaf646b7716d7e8cf3ee05 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d4d563f10a0a4b988b11714fe7df26e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d5ac3be543ec337cfafb30ec3ace74c1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9a48b188723fa8a03d0f673046b0fc7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9ad301878886b21cb9b44509bb894ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dbfc6268ec177851b2c88edf152f9806 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dd3286d35fd64e2653a6197e1a119fe3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dfe48c293819b2286e098915fc8fad5a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1096456df20861d666f73523b3a56d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1d76fcc2e89ab0b04ed04ec634f6d05 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e6f578ccc5ce42c3c2ac1b9e5f852e95 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ebcfbd5fe142a24161764b05e3f607cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f07bde17dc4edc3c19e9bbe8214f704c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5e13fd75422c05eae4ba55bbb2e3234 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5e9a47f7b5b0c8b015b00f78ac9c128 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f9f71c86744316fff0d53df707e7b717 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fea130b674bca41b352f8e716a7651c9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/00d7a043c9882a17a07b510906102001 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/025c11a67b36bd30f651d16a98770a0e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/03fbafbc59d06318c1bdf9bd0bd0be42 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/09d47de9952b122a7bc234d427dd8416 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0d0b7b8974da0b4cb0a257c744a885c9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0e428be3345c68c21fa16efd1df40a18 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0f4faea5e458e5336a34d5bdf730f92b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1a8f20ce64fdfd60ba1664aeb4ddb4b6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1e8215f994051001a53fb42a172471f6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2ec229db49fb53a9c0b9d2bdafe26708 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/302cd42bc3aefb54ae8daa5903bb0f85 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3b55b2f606d39fcea38795fe22cb1794 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3e343bb2d38b4857d5b4833b49a1e53b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4179c631f26234eef3666b9ab8e33b50 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/41ff3aa0f7f4df2c318f1b431119cfda +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/425042170630b86b32ce66d969f8bb11 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4b3ab02bbe0c24724a88f9fe2645aecd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4df29d52dd5decae9155fc42aa25673a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4e494dd03a8f6da76e5b75b4fd4a0450 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5889062dc9b0cf6f2d8cf419b85a12c6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5e72fbc4e8fdea7dafb782aed341db89 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/623872c195c5a722209120a9d715b9ed +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/69a540a9299d8fddcfec9738415e99a7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6b137bb6a6b172141b5e6ec921595037 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6c9f9111f4720199154c9dcf4423aa62 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6de6ba61e01e7c63db9d1beab694f3f9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6f68523d4752423dac2ad870dd947804 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6fc862535cdfd5840d530e396c32c4e8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/71123653cb35ff1e9af67e468d486fca +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7885b079c6324c6726f25fc54bf5fba5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/794057314c85426cbefcd2d3f6dd714c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8005f718a98e853a588d68f94210cbb4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/951aab6570b6ec758fe39cd50af2ccff +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/951e49f97121a9d4b84d310643cedbb0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/976f01268d11ebdabaad471bb54bf9cd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/97cd9891aebe543e0d25252357d04b08 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a1043f9e3ea288a30035e94cf9a67ae2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a261ba7edd58d2286bf4f542f22b0959 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a43437e9ef5f99a653ec0315955404c5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a89670e758589b116b4e8ae21b1d9a46 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/afbb38de8b31c6e1f62cb960058528bd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b891a3270c6fd4e6ab86bc044d7d1f6f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b90d47dd376cc93910ce502d6a2bf74f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bcfd3524949b4a0cb88f13cf3b474ebe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/be66b830f93ab21d749294d1cc37b7be +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ccd96591ad1431c8d01f6eeeee697951 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ce412b6008418ae47eacde6edd282246 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d19c7eeadbbaf646b7716d7e8cf3ee05 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d4d563f10a0a4b988b11714fe7df26e4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d5ac3be543ec337cfafb30ec3ace74c1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/dbfc6268ec177851b2c88edf152f9806 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/dfe48c293819b2286e098915fc8fad5a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e1d76fcc2e89ab0b04ed04ec634f6d05 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e6f578ccc5ce42c3c2ac1b9e5f852e95 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ebcfbd5fe142a24161764b05e3f607cd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f07bde17dc4edc3c19e9bbe8214f704c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f5e13fd75422c05eae4ba55bbb2e3234 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fea130b674bca41b352f8e716a7651c9 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/lib/generators/all_actions_generator_test.rb +1 -0
- data/test/lib/generators/dummy_test_files/app/assets/stylesheets/application.css +5 -0
- data/test/lib/generators/some_actions_generator_test.rb +1 -0
- data/test/lib/tmp/app/assets/stylesheets/application.css +5 -0
- data/test/lib/tmp/app/models/dinosaur.rb +0 -4
- data/test/lib/tmp/config/locales/en.yml +4 -0
- metadata +290 -4
- data/test/dummy/test/models/credit_card_info_test.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1549d102f6440fc89f2fa7f0911ff709fb49789b
|
4
|
+
data.tar.gz: e18c62d95b257373d89eb7f3f6642da0b1f06471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a15d0ad8f08c13086eb9cafd9105a211c59072bd7701ecf5c0daf7cced0596f481ae738e93b3c04cc51a3e0a38b517cf631b4f71d02dd203ee14ab0234d8b8e9
|
7
|
+
data.tar.gz: a8e322be2a9d728f50194d1bdc0653614a9f9e6a52fb144671e27f6619152c7344aee066df378c188e9f901d00524fce95428ae59d247291937b5ca6c77ef131
|
data/README.md
CHANGED
@@ -3,9 +3,10 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/controller_scaffolding.svg)](http://badge.fury.io/rb/controller_scaffolding)
|
4
4
|
|
5
5
|
#### Description ####
|
6
|
-
The generator acts somewhat like scaffolding, but you must specify an *existing* model and pass in any of the RESTful actions you are interested in (or no actions if you want all of them). With no options passed in except for the template engine (only Haml for now) it generates index pages with search/sort* functionality
|
6
|
+
The generator acts somewhat like scaffolding, but you must specify an *existing* model and pass in any of the RESTful actions you are interested in (or no actions if you want all of them). With no options passed in except for the template engine (only Haml for now) it generates index pages with search/sort* functionality and basic pagination and on forms it adds optional date/time pickers** and displays flash messages and validation errors. It also adds some styling for the index page and the new/edit form which makes it a bit easier on the eyes until you have a chance to add your own styling.
|
7
7
|
|
8
8
|
\* https://github.com/jomalley2112/sql_search_n_sort
|
9
|
+
\*\* https://github.com/jomalley2112/hot_date_rails
|
9
10
|
|
10
11
|
|
11
12
|
#### Index page ####
|
@@ -28,7 +29,7 @@ $ rails g controller_scaffolding users index new create edit update destroy --te
|
|
28
29
|
All Options:
|
29
30
|
```bash
|
30
31
|
$ rails g|d controller_scaffolding plural_model_name action1 action2 action3 --template-engine=haml
|
31
|
-
[--skip-ext-index-nav] [--skip-ext-form-submit] [--skip-assets] [--skip-test-framework] [--skip-helper] [--quiet] [--force] [--skip-search-sort]
|
32
|
+
[--skip-ext-index-nav] [--skip-ext-form-submit] [--skip-datepicker] [--skip-assets] [--skip-test-framework] [--skip-helper] [--quiet] [--force] [--skip-search-sort]
|
32
33
|
```
|
33
34
|
|
34
35
|
*Note: You must restart Rails after running this generator*
|
@@ -43,6 +44,7 @@ $ rails g|d controller_scaffolding plural_model_name action1 action2 action3 --t
|
|
43
44
|
| --template-engine=haml | Use Haml for template engine - REQUIRED | no |
|
44
45
|
| --skip-ext-index-nav | Do not include extended index navigation functionality | yes |
|
45
46
|
| --skip-ext-form-submit | Do not include extended form submission functionality | yes |
|
47
|
+
| --skip-datepicker | Do not include date/time picker functionality | yes |
|
46
48
|
| --skip-assets | Do not create assets | yes |
|
47
49
|
| --skip-test-framework | Do not create test files | yes |
|
48
50
|
| --skip-helper | Do not create helper file | yes |
|
@@ -82,6 +84,9 @@ $ rails g|d controller_scaffolding plural_model_name action1 action2 action3 --t
|
|
82
84
|
* Adds functionality to display flash messages and validation errors.
|
83
85
|
* Adds some styling to the form
|
84
86
|
|
87
|
+
#### Datepicker ####
|
88
|
+
* Uses [hot_date_rails](https://github.com/jomalley2112/hot_date_rails) to attach date, time and datetime pickers to appropriate form input fields.
|
89
|
+
|
85
90
|
|
86
91
|
#### Assets ####
|
87
92
|
* Javascript
|
@@ -105,6 +110,7 @@ $ rails g|d controller_scaffolding plural_model_name action1 action2 action3 --t
|
|
105
110
|
- 'sass-rails', '~> 4.0.3'
|
106
111
|
- 'jquery-rails'
|
107
112
|
- 'sql_search_n_sort', '=2.0.0'
|
113
|
+
- 'hot_date_rails', '~> 1.3.3'
|
108
114
|
|
109
115
|
#### Development Environment Dependencies ####
|
110
116
|
- "sqlite3"
|
@@ -115,9 +121,8 @@ $ rails g|d controller_scaffolding plural_model_name action1 action2 action3 --t
|
|
115
121
|
- "database_cleaner"
|
116
122
|
|
117
123
|
#### TODO ####
|
124
|
+
- Add support for Erb
|
118
125
|
- See if we can support case where existing model has been removed after generator has been run and then the user decides to uninstall (revoke) controller_scaffolding.
|
119
|
-
- Do something with template engine hook so Haml doesn't need to be specified in the generator call
|
120
|
-
- Add support for Erb
|
121
126
|
- Add search results message like "9 Results match 'you search string'"
|
122
127
|
- Nail down versions for dependencies
|
123
128
|
|
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
require 'rails/generators/generated_attribute'
|
6
6
|
|
7
|
-
|
8
7
|
module Rails
|
9
8
|
module Generators
|
10
9
|
##################### Generators module methods #####################
|
@@ -52,9 +51,10 @@ module Rails
|
|
52
51
|
end
|
53
52
|
|
54
53
|
def check_for_model #TODO: only do if behavior = :invoke maybe?
|
54
|
+
#this rescue has only been smoke-tested. can't find a way to unit test
|
55
55
|
begin
|
56
56
|
table_name.classify.constantize #throws runtime if model doesn't exist
|
57
|
-
rescue
|
57
|
+
rescue NameError
|
58
58
|
raise Thor::Error,
|
59
59
|
"Cannot run controller scaffold for model (#{table_name.classify}) that doesn't yet exist."
|
60
60
|
end
|
@@ -12,7 +12,9 @@ module Haml
|
|
12
12
|
argument :actions, type: :array, default: [], banner: "action action"
|
13
13
|
class_option :ext_index_nav, :type => :boolean, :default => true, :desc => "Include extended index page features."
|
14
14
|
class_option :ext_form_submit, :type => :boolean, :default => true, :desc => "Include extended form submission features."
|
15
|
-
class_option :search_sort, :type => :boolean, :default => true, :desc => "Add search and sort functionality to index page."
|
15
|
+
class_option :search_sort, :type => :boolean, :default => true, :desc => "Add search and sort functionality to index page."
|
16
|
+
class_option :datepicker, :type => :boolean, :default => true, :desc => "Use datepicker for date/time fields."
|
17
|
+
|
16
18
|
|
17
19
|
source_paths << File.expand_path('../../../../templates/haml/controller', __FILE__)
|
18
20
|
|
@@ -55,10 +57,7 @@ module Haml
|
|
55
57
|
copy_partial("_pagination")
|
56
58
|
add_pagination_to_locale_file
|
57
59
|
copy_ext_index_js
|
58
|
-
|
59
|
-
before: "\n//= require_tree ." do
|
60
|
-
"\n//= require jquery\n//= require jquery_ujs"
|
61
|
-
end
|
60
|
+
inc_jquery_scripts
|
62
61
|
end
|
63
62
|
end
|
64
63
|
|
@@ -78,6 +77,20 @@ module Haml
|
|
78
77
|
copy_partial("_validation_errors")
|
79
78
|
end
|
80
79
|
end
|
80
|
+
|
81
|
+
def handle_datepicker
|
82
|
+
if options.datepicker?
|
83
|
+
inc_jquery_scripts
|
84
|
+
inject_into_file "app/assets/javascripts/application.js",
|
85
|
+
before: "\n//= require_tree ." do
|
86
|
+
"\n//= require hot_date_rails"
|
87
|
+
end
|
88
|
+
inject_into_file "app/assets/stylesheets/application.css",
|
89
|
+
before: "\n *= require_tree ." do
|
90
|
+
"\n *= require hot_date_rails"
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
81
94
|
|
82
95
|
def copy_stylesheet
|
83
96
|
if options.ext_form_submit? || options.ext_index_nav?
|
@@ -95,7 +108,6 @@ module Haml
|
|
95
108
|
before: /^end/ do
|
96
109
|
"\n\textend SqlSearchableSortable\n"
|
97
110
|
end
|
98
|
-
#binding.pry
|
99
111
|
inject_into_file "app/models/#{table_name.singularize}.rb",
|
100
112
|
before: /^end/ do
|
101
113
|
"\n\tsql_searchable #{searchable_cols_as_symbols}\n"
|
@@ -108,7 +120,12 @@ module Haml
|
|
108
120
|
|
109
121
|
end
|
110
122
|
|
111
|
-
|
123
|
+
def print_warnings
|
124
|
+
if @unsearchable_model && behavior == :invoke && !options.quiet?
|
125
|
+
warn("WARNING: Model #{table_name.classify} is extending SqlSearchableSortable," \
|
126
|
+
" but doesn't have any searchable attributes at this point.")
|
127
|
+
end
|
128
|
+
end
|
112
129
|
#================================= P R O T E C T E D =================================
|
113
130
|
protected
|
114
131
|
def handler
|
@@ -117,16 +134,24 @@ module Haml
|
|
117
134
|
#================================= P R I V A T E =====================================
|
118
135
|
private
|
119
136
|
|
137
|
+
def inc_jquery_scripts
|
138
|
+
inject_into_file "app/assets/javascripts/application.js",
|
139
|
+
before: "\n//= require_tree ." do
|
140
|
+
"\n//= require jquery\n//= require jquery_ujs"
|
141
|
+
end unless @injected_jquery_ujs #shouldn't allow duplicate text, but just to be safe
|
142
|
+
@injected_jquery_ujs = true
|
143
|
+
end
|
144
|
+
|
120
145
|
def searchable_cols_as_symbols
|
121
|
-
|
122
|
-
.map { |col| col.name.to_sym }.to_s.gsub(/\[(.*)\]/, '\1')
|
123
|
-
@attr_cols.select{ |col| [:string, :text].include? col.type}
|
146
|
+
retval = @attr_cols.select{ |col| [:string, :text].include? col.type}
|
124
147
|
.map { |col| col.name.to_sym }.to_s.gsub(/\[(.*)\]/, '\1')
|
148
|
+
@unsearchable_model = true if retval.empty?
|
149
|
+
return retval
|
125
150
|
end
|
126
151
|
|
127
152
|
def cols_to_symbols
|
128
|
-
|
129
|
-
#ugly, but I can't find another way to keep the symbols
|
153
|
+
# going from [:col1, :col2, :col3] to ":col1, :col2, :col3"
|
154
|
+
#ugly, but I can't find another way to keep the symbols and lose the brackets
|
130
155
|
@attr_cols.map { |col| col.name.to_sym }.to_s.gsub(/\[(.*)\]/, '\1')
|
131
156
|
end
|
132
157
|
|
@@ -2,8 +2,13 @@
|
|
2
2
|
%table.outer
|
3
3
|
<% @attr_cols.each do |col| %>
|
4
4
|
%tr
|
5
|
+
<% if options.datepicker? && [:date, :time, :datetime].include?(col.type) %>
|
6
|
+
%td= f.hd_label :<%= col.name %>
|
7
|
+
%td.field= f.<%= col.type %>_picker :<%= col.name %>
|
8
|
+
<% else %>
|
5
9
|
%td= f.label :<%= col.name %>
|
6
10
|
%td.field= f.<%= col.field_type %> :<%= col.name %>
|
11
|
+
<% end %>
|
7
12
|
<% end %>
|
8
13
|
%tr
|
9
14
|
<% if options.ext_form_submit? %>
|
@@ -14,6 +14,14 @@ en:
|
|
14
14
|
zero: Fellows
|
15
15
|
one: Fellow
|
16
16
|
other: Fellows
|
17
|
+
unsearchables:
|
18
|
+
zero: Unsearchables
|
19
|
+
one: Unsearchable
|
20
|
+
other: Unsearchables
|
21
|
+
schedules:
|
22
|
+
zero: Schedules
|
23
|
+
one: Schedule
|
24
|
+
other: Schedules
|
17
25
|
page_entries_info:
|
18
26
|
multi_page_html: Displaying <b>%{from} - %{to}</b> of <b>%{count}</b>
|
19
27
|
%{model}
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20141013173403) do
|
15
15
|
|
16
16
|
create_table "credit_card_infos", force: true do |t|
|
17
17
|
t.string "cardholder"
|
@@ -51,4 +51,21 @@ ActiveRecord::Schema.define(version: 20140811153902) do
|
|
51
51
|
t.datetime "updated_at"
|
52
52
|
end
|
53
53
|
|
54
|
+
create_table "schedules", force: true do |t|
|
55
|
+
t.time "breakfast"
|
56
|
+
t.date "birthday"
|
57
|
+
t.datetime "appointment"
|
58
|
+
t.time "dinner"
|
59
|
+
t.date "easter"
|
60
|
+
t.datetime "created_at"
|
61
|
+
t.datetime "updated_at"
|
62
|
+
end
|
63
|
+
|
64
|
+
create_table "unsearchables", force: true do |t|
|
65
|
+
t.date "dt"
|
66
|
+
t.boolean "bool"
|
67
|
+
t.datetime "created_at"
|
68
|
+
t.datetime "updated_at"
|
69
|
+
end
|
70
|
+
|
54
71
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -14479,3 +14479,269 @@ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-08-21 11:49:4
|
|
14479
14479
|
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-08-21 11:50:29 -0400
|
14480
14480
|
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
14481
14481
|
[1m[36mPerson Load (1.2ms)[0m [1mSELECT "people".* FROM "people"[0m
|
14482
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14483
|
+
Migrating to CreateUnsearchables (20141013173403)
|
14484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14485
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "unsearchables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dt" date, "bool" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
14486
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141013173403"]]
|
14487
|
+
[1m[36m (21.9ms)[0m [1mcommit transaction[0m
|
14488
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
14489
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "credit_card_infos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "cardholder" varchar(255), "exp_date" date, "secret_code" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
14490
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "dinosaurs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" varchar(255), "good_dino" boolean, "created_at" datetime, "updated_at" datetime)
|
14491
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "fellows" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "title" varchar(255), "dob" datetime, "is_manager" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
14492
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "title" varchar(255), "dob" datetime, "is_manager" boolean, "created_at" datetime, "updated_at" datetime)
|
14493
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schedules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "breakfast" time, "birthday" date, "appointment" datetime, "dinner" time, "easter" date, "created_at" datetime, "updated_at" datetime) [0m
|
14494
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "unsearchables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "dt" date, "bool" boolean, "created_at" datetime, "updated_at" datetime)
|
14495
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
14496
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
14497
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14498
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
14499
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141013173403')[0m
|
14500
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140711034542')
|
14501
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140731014857')[0m
|
14502
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140806202909')
|
14503
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140811153902')[0m
|
14504
|
+
|
14505
|
+
|
14506
|
+
Started GET "/people" for 127.0.0.1 at 2014-10-13 22:19:11 -0400
|
14507
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14508
|
+
|
14509
|
+
ActionController::RoutingError (No route matches [GET] "/people"):
|
14510
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
14511
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
14512
|
+
railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
|
14513
|
+
railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
|
14514
|
+
activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
14515
|
+
activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
|
14516
|
+
activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
|
14517
|
+
railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
|
14518
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
14519
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
14520
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
14521
|
+
activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
|
14522
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
14523
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
|
14524
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
14525
|
+
railties (4.1.6) lib/rails/engine.rb:514:in `call'
|
14526
|
+
railties (4.1.6) lib/rails/application.rb:144:in `call'
|
14527
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
14528
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
14529
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
14530
|
+
/Users/johnomalley/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
|
14531
|
+
/Users/johnomalley/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
|
14532
|
+
/Users/johnomalley/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
|
14533
|
+
|
14534
|
+
|
14535
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
|
14536
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
|
14537
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (16.1ms)
|
14538
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (40.3ms)
|
14539
|
+
|
14540
|
+
|
14541
|
+
Started GET "/credit_card_infos" for 127.0.0.1 at 2014-10-13 22:19:27 -0400
|
14542
|
+
|
14543
|
+
ActionController::RoutingError (uninitialized constant CreditCardInfosController):
|
14544
|
+
activesupport (4.1.6) lib/active_support/inflector/methods.rb:238:in `const_get'
|
14545
|
+
activesupport (4.1.6) lib/active_support/inflector/methods.rb:238:in `block in constantize'
|
14546
|
+
activesupport (4.1.6) lib/active_support/inflector/methods.rb:236:in `each'
|
14547
|
+
activesupport (4.1.6) lib/active_support/inflector/methods.rb:236:in `inject'
|
14548
|
+
activesupport (4.1.6) lib/active_support/inflector/methods.rb:236:in `constantize'
|
14549
|
+
actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:78:in `controller_reference'
|
14550
|
+
actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:68:in `controller'
|
14551
|
+
actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:46:in `call'
|
14552
|
+
actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'
|
14553
|
+
actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'
|
14554
|
+
actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'
|
14555
|
+
actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'
|
14556
|
+
rack (1.5.2) lib/rack/etag.rb:23:in `call'
|
14557
|
+
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
|
14558
|
+
rack (1.5.2) lib/rack/head.rb:11:in `call'
|
14559
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
14560
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'
|
14561
|
+
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
|
14562
|
+
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
|
14563
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'
|
14564
|
+
activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'
|
14565
|
+
activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
|
14566
|
+
activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'
|
14567
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
14568
|
+
activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'
|
14569
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
14570
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
14571
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
|
14572
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
14573
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
14574
|
+
railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'
|
14575
|
+
railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'
|
14576
|
+
activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
14577
|
+
activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
|
14578
|
+
activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'
|
14579
|
+
railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'
|
14580
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
14581
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
14582
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
14583
|
+
activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
|
14584
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
14585
|
+
actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'
|
14586
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
14587
|
+
railties (4.1.6) lib/rails/engine.rb:514:in `call'
|
14588
|
+
railties (4.1.6) lib/rails/application.rb:144:in `call'
|
14589
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
14590
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
14591
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
14592
|
+
/Users/johnomalley/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
|
14593
|
+
/Users/johnomalley/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
|
14594
|
+
/Users/johnomalley/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
|
14595
|
+
|
14596
|
+
|
14597
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms)
|
14598
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
|
14599
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
|
14600
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (20.5ms)
|
14601
|
+
|
14602
|
+
|
14603
|
+
Started GET "/credit_card_infos" for 127.0.0.1 at 2014-10-13 22:20:46 -0400
|
14604
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14605
|
+
Processing by CreditCardInfosController#index as HTML
|
14606
|
+
Rendered application/_sort_form.html.haml (1.8ms)
|
14607
|
+
Rendered application/_search_form.html.haml (2.5ms)
|
14608
|
+
[1m[35mCreditCardInfo Load (0.3ms)[0m SELECT "credit_card_infos".* FROM "credit_card_infos" WHERE (1=2 or cardholder like '%%' or secret_code like '%%') LIMIT 15 OFFSET 0
|
14609
|
+
[1m[36mCreditCardInfo Load (0.2ms)[0m [1mSELECT "credit_card_infos".* FROM "credit_card_infos" WHERE (1=2 or cardholder like '%%' or secret_code like '%%') LIMIT 1 OFFSET 0[0m
|
14610
|
+
Rendered application/_pagination.html.haml (454.4ms)
|
14611
|
+
Rendered credit_card_infos/index.html.haml within layouts/application (479.0ms)
|
14612
|
+
Completed 500 Internal Server Error in 497ms
|
14613
|
+
|
14614
|
+
ActionView::Template::Error (couldn't find file 'hot_date_rails'
|
14615
|
+
(in /Users/johnomalley/Rails_Projects/Rails_4.1/controller_scaffolding/test/dummy/app/assets/stylesheets/application.css:13)):
|
14616
|
+
2: <html>
|
14617
|
+
3: <head>
|
14618
|
+
4: <title>Dummy</title>
|
14619
|
+
5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
14620
|
+
6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
14621
|
+
7: <%= csrf_meta_tags %>
|
14622
|
+
8: </head>
|
14623
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__1275332757950285053_2215338280'
|
14624
|
+
|
14625
|
+
|
14626
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
|
14627
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (10.9ms)
|
14628
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.9ms)
|
14629
|
+
|
14630
|
+
|
14631
|
+
Started GET "/credit_card_infos" for 127.0.0.1 at 2014-10-13 22:23:39 -0400
|
14632
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14633
|
+
Processing by CreditCardInfosController#index as HTML
|
14634
|
+
Rendered application/_sort_form.html.haml (2.4ms)
|
14635
|
+
Rendered application/_search_form.html.haml (2.5ms)
|
14636
|
+
[1m[35mCreditCardInfo Load (0.3ms)[0m SELECT "credit_card_infos".* FROM "credit_card_infos" WHERE (1=2 or cardholder like '%%' or secret_code like '%%') LIMIT 15 OFFSET 0
|
14637
|
+
[1m[36mCreditCardInfo Load (0.2ms)[0m [1mSELECT "credit_card_infos".* FROM "credit_card_infos" WHERE (1=2 or cardholder like '%%' or secret_code like '%%') LIMIT 1 OFFSET 0[0m
|
14638
|
+
Rendered application/_pagination.html.haml (398.5ms)
|
14639
|
+
Rendered credit_card_infos/index.html.haml within layouts/application (422.7ms)
|
14640
|
+
Completed 500 Internal Server Error in 441ms
|
14641
|
+
|
14642
|
+
ActionView::Template::Error (couldn't find file 'hot_date_rails'
|
14643
|
+
(in /Users/johnomalley/Rails_Projects/Rails_4.1/controller_scaffolding/test/dummy/app/assets/stylesheets/application.css:15)):
|
14644
|
+
2: <html>
|
14645
|
+
3: <head>
|
14646
|
+
4: <title>Dummy</title>
|
14647
|
+
5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
14648
|
+
6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
14649
|
+
7: <%= csrf_meta_tags %>
|
14650
|
+
8: </head>
|
14651
|
+
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___2907552649025354349_2216153760'
|
14652
|
+
|
14653
|
+
|
14654
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
|
14655
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (17.2ms)
|
14656
|
+
Rendered /Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (26.6ms)
|
14657
|
+
|
14658
|
+
|
14659
|
+
Started GET "/credit_card_infos" for 127.0.0.1 at 2014-10-13 23:17:54 -0400
|
14660
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14661
|
+
Processing by CreditCardInfosController#index as HTML
|
14662
|
+
Rendered application/_sort_form.html.haml (1.4ms)
|
14663
|
+
Rendered application/_search_form.html.haml (1.5ms)
|
14664
|
+
[1m[35mCreditCardInfo Load (0.3ms)[0m SELECT "credit_card_infos".* FROM "credit_card_infos" WHERE (1=2 or cardholder like '%%' or secret_code like '%%') LIMIT 15 OFFSET 0
|
14665
|
+
[1m[36mCreditCardInfo Load (0.2ms)[0m [1mSELECT "credit_card_infos".* FROM "credit_card_infos" WHERE (1=2 or cardholder like '%%' or secret_code like '%%') LIMIT 1 OFFSET 0[0m
|
14666
|
+
Rendered application/_pagination.html.haml (413.1ms)
|
14667
|
+
Rendered credit_card_infos/index.html.haml within layouts/application (435.5ms)
|
14668
|
+
Rendered application/_flash_messages.html.haml (1.5ms)
|
14669
|
+
Completed 200 OK in 2307ms (Views: 2302.6ms | ActiveRecord: 1.0ms)
|
14670
|
+
|
14671
|
+
|
14672
|
+
Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14673
|
+
|
14674
|
+
|
14675
|
+
Started GET "/assets/jquery-ui-timepicker-addon.css?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14676
|
+
|
14677
|
+
|
14678
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14679
|
+
|
14680
|
+
|
14681
|
+
Started GET "/assets/controller_scaffolding.css?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14682
|
+
|
14683
|
+
|
14684
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14685
|
+
|
14686
|
+
|
14687
|
+
Started GET "/assets/hot_date_rails.css?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14688
|
+
|
14689
|
+
|
14690
|
+
Started GET "/assets/hot_date_rails/hot_date_rails.css?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14691
|
+
|
14692
|
+
|
14693
|
+
Started GET "/assets/jquery-ui.min.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14694
|
+
|
14695
|
+
|
14696
|
+
Started GET "/assets/jquery-ui-timepicker-addon.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14697
|
+
|
14698
|
+
|
14699
|
+
Started GET "/assets/hot_date_rails/hot_date_rails.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14700
|
+
|
14701
|
+
|
14702
|
+
Started GET "/assets/ext_index_nav.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14703
|
+
|
14704
|
+
|
14705
|
+
Started GET "/assets/hot_date_rails.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14706
|
+
|
14707
|
+
|
14708
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14709
|
+
|
14710
|
+
|
14711
|
+
Started GET "/assets/sql_search_n_sort.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14712
|
+
|
14713
|
+
|
14714
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-10-13 23:17:57 -0400
|
14715
|
+
|
14716
|
+
|
14717
|
+
Started GET "/credit_card_infos/1/edit" for 127.0.0.1 at 2014-10-13 23:18:05 -0400
|
14718
|
+
Processing by CreditCardInfosController#edit as HTML
|
14719
|
+
Parameters: {"id"=>"1"}
|
14720
|
+
[1m[35mCreditCardInfo Load (0.3ms)[0m SELECT "credit_card_infos".* FROM "credit_card_infos" WHERE "credit_card_infos"."id" = ? LIMIT 1 [["id", 1]]
|
14721
|
+
Rendered credit_card_infos/_form.html.haml (48.4ms)
|
14722
|
+
Rendered credit_card_infos/edit.html.haml within layouts/application (50.4ms)
|
14723
|
+
Rendered application/_flash_messages.html.haml (0.1ms)
|
14724
|
+
Completed 200 OK in 156ms (Views: 153.6ms | ActiveRecord: 0.3ms)
|
14725
|
+
|
14726
|
+
|
14727
|
+
Started GET "/assets/ui-bg_highlight-soft_100_eeeeee_1x100.png" for 127.0.0.1 at 2014-10-13 23:18:06 -0400
|
14728
|
+
|
14729
|
+
|
14730
|
+
Started GET "/assets/ui-bg_gloss-wave_35_f6a828_500x100.png" for 127.0.0.1 at 2014-10-13 23:18:08 -0400
|
14731
|
+
|
14732
|
+
|
14733
|
+
Started GET "/assets/ui-icons_ffffff_256x240.png" for 127.0.0.1 at 2014-10-13 23:18:08 -0400
|
14734
|
+
|
14735
|
+
|
14736
|
+
Started GET "/assets/ui-bg_glass_65_ffffff_1x400.png" for 127.0.0.1 at 2014-10-13 23:18:08 -0400
|
14737
|
+
|
14738
|
+
|
14739
|
+
Started GET "/assets/ui-bg_glass_100_f6f6f6_1x400.png" for 127.0.0.1 at 2014-10-13 23:18:08 -0400
|
14740
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14741
|
+
Migrating to CreateSchedules (20141014223742)
|
14742
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14743
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schedules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "birthday" date, "lunch" time, "epoch" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
14744
|
+
SQLite3::SQLException: table "schedules" already exists: CREATE TABLE "schedules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "birthday" date, "lunch" time, "epoch" datetime, "created_at" datetime, "updated_at" datetime)
|
14745
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14746
|
+
[1m[36mSchedule Load (1.8ms)[0m [1mSELECT "schedules".* FROM "schedules"[0m
|
14747
|
+
[1m[36mSchedule Load (0.3ms)[0m [1mSELECT "schedules".* FROM "schedules" ORDER BY "schedules"."id" ASC LIMIT 1[0m
|