bootstrap3_autocomplete_input 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +32 -0
- data/app/inputs/autocomplete_input.rb +65 -0
- data/lib/assets/javascripts/bootstrap3-autocomplete-input.js +87 -0
- data/lib/assets/javascripts/bootstrap3-autocomplete-input.min.js +1 -0
- data/lib/assets/javascripts/bootstrap3-typeahead.js +476 -0
- data/lib/assets/javascripts/bootstrap3-typeahead.min.js +1 -0
- data/lib/bootstrap3_autocomplete_input.rb +24 -0
- data/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb +66 -0
- data/lib/bootstrap3_autocomplete_input/orm.rb +7 -0
- data/lib/bootstrap3_autocomplete_input/orm/active_record.rb +51 -0
- data/lib/bootstrap3_autocomplete_input/orm/mongo_mapper.rb +30 -0
- data/lib/bootstrap3_autocomplete_input/orm/mongoid.rb +44 -0
- data/lib/bootstrap3_autocomplete_input/rails/engine.rb +15 -0
- data/lib/bootstrap3_autocomplete_input/simple_form_inputs.rb +78 -0
- data/lib/bootstrap3_autocomplete_input/version.rb +3 -0
- data/lib/generators/autocomplete/install_generator.rb +0 -0
- data/lib/tasks/bootstrap3_autocomplete_input_tasks.rake +4 -0
- data/test/bootstrap3_autocomplete_input_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +18 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/clients_controller.rb +58 -0
- data/test/dummy/app/controllers/orders_controller.rb +60 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/clients_helper.rb +2 -0
- data/test/dummy/app/helpers/orders_helper.rb +2 -0
- data/test/dummy/app/models/client.rb +3 -0
- data/test/dummy/app/models/order.rb +3 -0
- data/test/dummy/app/views/clients/_form.html.erb +18 -0
- data/test/dummy/app/views/clients/edit.html.erb +6 -0
- data/test/dummy/app/views/clients/index.html.erb +24 -0
- data/test/dummy/app/views/clients/new.html.erb +5 -0
- data/test/dummy/app/views/clients/show.html.erb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/orders/_form.html.erb +50 -0
- data/test/dummy/app/views/orders/edit.html.erb +6 -0
- data/test/dummy/app/views/orders/index.html.erb +23 -0
- data/test/dummy/app/views/orders/new.html.erb +5 -0
- data/test/dummy/app/views/orders/show.html.erb +4 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +25 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/simple_form.rb +166 -0
- data/test/dummy/config/initializers/simple_form_bootstrap.rb +136 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/locales/simple_form.en.yml +31 -0
- data/test/dummy/config/routes.rb +62 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141224031843_create_clients.rb +10 -0
- data/test/dummy/db/migrate/20141224031854_create_orders.rb +12 -0
- data/test/dummy/db/migrate/20141224032000_add_client_to_order.rb +6 -0
- data/test/dummy/db/schema.rb +30 -0
- data/test/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/test/dummy/log/development.log +163 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/assets/application-c75a9a9deda9531070f576f4b4f75c82.js +5 -0
- data/test/dummy/public/assets/application-c75a9a9deda9531070f576f4b4f75c82.js.gz +0 -0
- data/test/dummy/public/assets/application-f44356f250333028ca1fd1097ad49074.css +8146 -0
- data/test/dummy/public/assets/application-f44356f250333028ca1fd1097ad49074.css.gz +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-195cb410b49d75c104a5bc6ad385ac77.woff +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-38831bbd01504eaf996d291c5e157661.ttf +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-69ff52480052cf785cc3f4472e1d56d9.eot +0 -0
- data/test/dummy/public/assets/bootstrap/glyphicons-halflings-regular-8acb5264b8eab48469867b225a7f3eb5.svg +229 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-cf2b341a1531cbc2fc6ef5ad4701a2f2.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100-5858cfe74efe6264f22d7173d47d59ff.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400-ea25ba87e2239186bff03593a01ee8b9.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400-c338312c804e21990fd135b4cfd47e34.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_glass_75_dadada_1x400-f341292284f79753f6c7437a4a56706e.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400-d78f160584dc06a42b7309e5d6a6f181.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-e9751011cbae1cab664dca499087cf35.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100-648c6d3e57afdb3827bcf9da30572df6.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-icons_222222_256x240-af300280aedd6d5650563b1c4ddb4170.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-icons_2e83ff_256x240-6e705c14341602e315c8320420582407.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-icons_454545_256x240-79df93e060c7f26739b6bdab208a83bb.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-icons_888888_256x240-a37e590d37d1a4614f1e05f9a3fa270c.png +0 -0
- data/test/dummy/public/assets/jquery-ui/ui-icons_cd0a0a_256x240-d350ff5c368b707165371738d74a45f3.png +0 -0
- data/test/dummy/public/assets/manifest-2c14fa9337f42e56d7ee7bc25e91853c.json +1 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/clients_controller_test.rb +49 -0
- data/test/dummy/test/controllers/orders_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/clients.yml +11 -0
- data/test/dummy/test/fixtures/orders.yml +11 -0
- data/test/dummy/test/helpers/clients_helper_test.rb +4 -0
- data/test/dummy/test/helpers/orders_helper_test.rb +4 -0
- data/test/dummy/test/models/client_test.rb +7 -0
- data/test/dummy/test/models/order_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_badges.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_carousel.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_close.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_code.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_component-animations.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_glyphicons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_input-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_jumbotron.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_list-group.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_media.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_modals.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_navbar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_navs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_normalize.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_pager.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_popovers.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_print.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_responsive-embed.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_responsive-utilities.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_thumbnails.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_tooltip.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_type.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_utilities.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/00c0d190ddd8c2872a4734aa8f23fac8f3f4f27c/_wells.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_background-variant.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_border-radius.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_center-block.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_clearfix.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_gradients.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_grid-framework.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_hide-text.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_image.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_list-group.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_nav-divider.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_nav-vertical-align.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_opacity.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_progress-bar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_reset-filter.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_resize.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_responsive-visibility.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_size.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_tab-focus.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_table-row.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_text-emphasis.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_text-overflow.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/826344a9bdbb4ce67201515fbc2643c96b5692c8/_vendor-prefixes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/a39e0369930579ee8c9c371998d66bc75345b4be/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/cec4c201800e8a79a141df13cd1029773a871cb4/_bootstrap-sprockets.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/cec4c201800e8a79a141df13cd1029773a871cb4/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/05304e2722415bbc5142bded0d637d5b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/067de15f6eed2b96ff2fef4779e1495f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/097f3cf94fac7a339daf65b4fbbbf469 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/09e7eed3751645884590e16723e8c7b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0bf93caacb628748207c7b18f44e2ce5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13bbf50c11c4a0032c43cfedab28589c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/14ff7948a4a406b91a86768262212334 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/158c207e246f777fd1b202837deb4d2a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/15bf67bdb925b7dd96d635ec0088a5e1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e9dbac6bb0ab62a1258e8e450ffc43a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/278146df7d7c18920d86a4ae7852fd8b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/28105053ec5c84ff23ba9a772770ae92 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2acf447a8c29da6e4d89163a70ef0ae8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32f6f752901c13c529a37eb337113f1f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/346e797e518b143a4d66645c95d73528 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/38929ac56b95af9ff0142cfe13972e8f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3afb0d89e1e96802e9878dbf7b9ba3a8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3b5b4cd2a1abf7f59590adc0be9c2e4b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3e25f4c5c007ec48c5febf3a06a6c301 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4127f13a5b8ce6faf84acfa698bcfbaf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/423defc0a61e0f9d7158ad173b4440d0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4708cc029aeffd33fd6d871326a69195 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4a5472adf761a1d2f647e7900b5ef968 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bdbccbeace1fffd0d66c45b11c1cd39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4f494d96ea9500f27cd13f8f0023387b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/50dea07ea281a8cbea66d410c600a2ff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5629567743085156cc027749c19c1ffb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/56bc640a0f9583792c60571e60eddae5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5d8aa60f935c97dcad777bcd7b918e91 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/61049b8df6c1b633546ac4d6b352977e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69770d4ab285a55d14293db680d92d76 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/720375e2e5e9dbdd1d2596eb6f4ffea2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7403249712f49d78cd3a754390ee69d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7a356d0e966dd72c226bcf7135d06241 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7c653abf8262bcbff815599a9d6eb6bc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8940a3fa55913c130433eaf2b1147b8a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8eda70465594d269ff72217d71e139f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/92f86cdf28d08db9f59aa10f2eb19a6e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9b033013c82fee3eadfd068f18eb5fde +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a42a698569fb032e296fd80b809d31e1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a4d0dcd6736789a4e61a05c0b0d4f6d8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b2e65f0fccfa235b5d60262df3e10aae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b48b23ce9dee63a2449cc13d923a587e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bafa439ba35a0831ed26638af2634282 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bb06a5a9c23f9fedeb77029977958bed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c1539958d8d5f93bfaad4f3cc9d21047 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c99fb99f69104b46f747c743409df324 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d2c64b08d25425455b7d9d66e142fa0b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d5a46b2a46d7423c5287fc57e24aba11 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d5e8ebed7a8e96a30f28d4b06fa5a6c4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d6f08cc14c885cf7a55e95ed54172a89 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dab5e3951e6d81b6edca28eb6c66964c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/db8ec0c14f31d98a8ceb8365ade470e6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee91e123536718a81d5d676d83f421c4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f2ad9aef860b7792f7542318c4731fe0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f62fbf566f3d7493edb2d257079b377a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f8f634cf3fb2563597257d30d0cc25fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc1c8dd76249106a788624558da20062 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fff835239214e2c684bd8ff954854862 +0 -0
- data/test/test_helper.rb +16 -0
- metadata +558 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
|
37
|
+
# Raises error for missing translations
|
38
|
+
# config.action_view.raise_on_missing_translations = true
|
39
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Precompile additional assets.
|
7
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
8
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -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,166 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
4
|
+
# complete input. You can remove any component from the
|
5
|
+
# wrapper, change the order or even add your own to the
|
6
|
+
# stack. The options given below are used to wrap the
|
7
|
+
# whole input.
|
8
|
+
config.wrappers :default, class: :input,
|
9
|
+
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
|
10
|
+
## Extensions enabled by default
|
11
|
+
# Any of these extensions can be disabled for a
|
12
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
+
# You can make any of these extensions optional by
|
14
|
+
# renaming `b.use` to `b.optional`.
|
15
|
+
|
16
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
+
# and required attributes
|
18
|
+
b.use :html5
|
19
|
+
|
20
|
+
# Calculates placeholders automatically from I18n
|
21
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
+
b.use :placeholder
|
23
|
+
|
24
|
+
## Optional extensions
|
25
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
27
|
+
# if any exists. If you want to enable any of those
|
28
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
+
|
30
|
+
# Calculates maxlength from length validations for string inputs
|
31
|
+
b.optional :maxlength
|
32
|
+
|
33
|
+
# Calculates pattern from format validations for string inputs
|
34
|
+
b.optional :pattern
|
35
|
+
|
36
|
+
# Calculates min and max from length validations for numeric inputs
|
37
|
+
b.optional :min_max
|
38
|
+
|
39
|
+
# Calculates readonly automatically from readonly attributes
|
40
|
+
b.optional :readonly
|
41
|
+
|
42
|
+
## Inputs
|
43
|
+
b.use :label_input
|
44
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
+
b.use :error, wrap_with: { tag: :span, class: :error }
|
46
|
+
|
47
|
+
## full_messages_for
|
48
|
+
# If you want to display the full error message for the attribute, you can
|
49
|
+
# use the component :full_error, like:
|
50
|
+
#
|
51
|
+
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
52
|
+
end
|
53
|
+
|
54
|
+
# The default wrapper to be used by the FormBuilder.
|
55
|
+
config.default_wrapper = :default
|
56
|
+
|
57
|
+
# Define the way to render check boxes / radio buttons with labels.
|
58
|
+
# Defaults to :nested for bootstrap config.
|
59
|
+
# inline: input + label
|
60
|
+
# nested: label > input
|
61
|
+
config.boolean_style = :nested
|
62
|
+
|
63
|
+
# Default class for buttons
|
64
|
+
config.button_class = 'btn'
|
65
|
+
|
66
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
67
|
+
# :first lists the first message for each field.
|
68
|
+
# Use :to_sentence to list all errors for each field.
|
69
|
+
# config.error_method = :first
|
70
|
+
|
71
|
+
# Default tag used for error notification helper.
|
72
|
+
config.error_notification_tag = :div
|
73
|
+
|
74
|
+
# CSS class to add for error notification helper.
|
75
|
+
config.error_notification_class = 'error_notification'
|
76
|
+
|
77
|
+
# ID to add for error notification helper.
|
78
|
+
# config.error_notification_id = nil
|
79
|
+
|
80
|
+
# Series of attempts to detect a default label method for collection.
|
81
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
82
|
+
|
83
|
+
# Series of attempts to detect a default value method for collection.
|
84
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
85
|
+
|
86
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
87
|
+
# config.collection_wrapper_tag = nil
|
88
|
+
|
89
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
90
|
+
# config.collection_wrapper_class = nil
|
91
|
+
|
92
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
93
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
94
|
+
# SimpleForm will force this option to be a label.
|
95
|
+
# config.item_wrapper_tag = :span
|
96
|
+
|
97
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
98
|
+
# config.item_wrapper_class = nil
|
99
|
+
|
100
|
+
# How the label text should be generated altogether with the required text.
|
101
|
+
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
102
|
+
|
103
|
+
# You can define the class to use on all labels. Default is nil.
|
104
|
+
# config.label_class = nil
|
105
|
+
|
106
|
+
# You can define the default class to be used on forms. Can be overriden
|
107
|
+
# with `html: { :class }`. Defaulting to none.
|
108
|
+
# config.default_form_class = nil
|
109
|
+
|
110
|
+
# You can define which elements should obtain additional classes
|
111
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
112
|
+
|
113
|
+
# Whether attributes are required by default (or not). Default is true.
|
114
|
+
# config.required_by_default = true
|
115
|
+
|
116
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
117
|
+
# These validations are enabled in SimpleForm's internal config but disabled by default
|
118
|
+
# in this configuration, which is recommended due to some quirks from different browsers.
|
119
|
+
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
120
|
+
# change this configuration to true.
|
121
|
+
config.browser_validations = false
|
122
|
+
|
123
|
+
# Collection of methods to detect if a file type was given.
|
124
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
125
|
+
|
126
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
127
|
+
# to match as key, and the input type that will be used when the field name
|
128
|
+
# matches the regexp as value.
|
129
|
+
# config.input_mappings = { /count/ => :integer }
|
130
|
+
|
131
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
132
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
133
|
+
# config.wrapper_mappings = { string: :prepend }
|
134
|
+
|
135
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
136
|
+
# override default inputs.
|
137
|
+
# config.custom_inputs_namespaces << "CustomInputs"
|
138
|
+
|
139
|
+
# Default priority for time_zone inputs.
|
140
|
+
# config.time_zone_priority = nil
|
141
|
+
|
142
|
+
# Default priority for country inputs.
|
143
|
+
# config.country_priority = nil
|
144
|
+
|
145
|
+
# When false, do not use translations for labels.
|
146
|
+
# config.translate_labels = true
|
147
|
+
|
148
|
+
# Automatically discover new inputs in Rails' autoload path.
|
149
|
+
# config.inputs_discovery = true
|
150
|
+
|
151
|
+
# Cache SimpleForm inputs discovery
|
152
|
+
# config.cache_discovery = !Rails.env.development?
|
153
|
+
|
154
|
+
# Default class for inputs
|
155
|
+
# config.input_class = nil
|
156
|
+
|
157
|
+
# Define the default class of the input wrapper of the boolean input.
|
158
|
+
config.boolean_label_class = 'checkbox'
|
159
|
+
|
160
|
+
# Defines if the default input wrapper class should be included in radio
|
161
|
+
# collection wrappers.
|
162
|
+
# config.include_default_input_wrapper_class = true
|
163
|
+
|
164
|
+
# Defines which i18n scope will be used in Simple Form.
|
165
|
+
# config.i18n_scope = 'simple_form'
|
166
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
config.error_notification_class = 'alert alert-danger'
|
4
|
+
config.button_class = 'btn btn-default'
|
5
|
+
config.boolean_label_class = nil
|
6
|
+
|
7
|
+
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
8
|
+
b.use :html5
|
9
|
+
b.use :placeholder
|
10
|
+
b.optional :maxlength
|
11
|
+
b.optional :pattern
|
12
|
+
b.optional :min_max
|
13
|
+
b.optional :readonly
|
14
|
+
b.use :label, class: 'control-label'
|
15
|
+
|
16
|
+
b.use :input, class: 'form-control'
|
17
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
18
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
19
|
+
end
|
20
|
+
|
21
|
+
config.wrappers :vertical_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
22
|
+
b.use :html5
|
23
|
+
b.use :placeholder
|
24
|
+
b.optional :maxlength
|
25
|
+
b.optional :readonly
|
26
|
+
b.use :label, class: 'control-label'
|
27
|
+
|
28
|
+
b.use :input
|
29
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
30
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
31
|
+
end
|
32
|
+
|
33
|
+
config.wrappers :vertical_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
34
|
+
b.use :html5
|
35
|
+
b.optional :readonly
|
36
|
+
|
37
|
+
b.wrapper tag: 'div', class: 'checkbox' do |ba|
|
38
|
+
ba.use :label_input
|
39
|
+
end
|
40
|
+
|
41
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
42
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
43
|
+
end
|
44
|
+
|
45
|
+
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
46
|
+
b.use :html5
|
47
|
+
b.optional :readonly
|
48
|
+
b.use :label, class: 'control-label'
|
49
|
+
b.use :input
|
50
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
51
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
52
|
+
end
|
53
|
+
|
54
|
+
config.wrappers :horizontal_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
55
|
+
b.use :html5
|
56
|
+
b.use :placeholder
|
57
|
+
b.optional :maxlength
|
58
|
+
b.optional :pattern
|
59
|
+
b.optional :min_max
|
60
|
+
b.optional :readonly
|
61
|
+
b.use :label, class: 'col-sm-3 control-label'
|
62
|
+
|
63
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
64
|
+
ba.use :input, class: 'form-control'
|
65
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
66
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
config.wrappers :horizontal_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
71
|
+
b.use :html5
|
72
|
+
b.use :placeholder
|
73
|
+
b.optional :maxlength
|
74
|
+
b.optional :readonly
|
75
|
+
b.use :label, class: 'col-sm-3 control-label'
|
76
|
+
|
77
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
78
|
+
ba.use :input
|
79
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
80
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
85
|
+
b.use :html5
|
86
|
+
b.optional :readonly
|
87
|
+
|
88
|
+
b.wrapper tag: 'div', class: 'col-sm-offset-3 col-sm-9' do |wr|
|
89
|
+
wr.wrapper tag: 'div', class: 'checkbox' do |ba|
|
90
|
+
ba.use :label_input, class: 'col-sm-9'
|
91
|
+
end
|
92
|
+
|
93
|
+
wr.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
94
|
+
wr.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
99
|
+
b.use :html5
|
100
|
+
b.optional :readonly
|
101
|
+
|
102
|
+
b.use :label, class: 'col-sm-3 control-label'
|
103
|
+
|
104
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
105
|
+
ba.use :input
|
106
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
107
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
config.wrappers :inline_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
112
|
+
b.use :html5
|
113
|
+
b.use :placeholder
|
114
|
+
b.optional :maxlength
|
115
|
+
b.optional :pattern
|
116
|
+
b.optional :min_max
|
117
|
+
b.optional :readonly
|
118
|
+
b.use :label, class: 'sr-only'
|
119
|
+
|
120
|
+
b.use :input, class: 'form-control'
|
121
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
122
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
123
|
+
end
|
124
|
+
|
125
|
+
# Wrappers for forms and inputs using the Bootstrap toolkit.
|
126
|
+
# Check the Bootstrap docs (http://getbootstrap.com)
|
127
|
+
# to learn about the different styles for forms and inputs,
|
128
|
+
# buttons and other elements.
|
129
|
+
config.default_wrapper = :vertical_form
|
130
|
+
config.wrapper_mappings = {
|
131
|
+
check_boxes: :vertical_radio_and_checkboxes,
|
132
|
+
radio_buttons: :vertical_radio_and_checkboxes,
|
133
|
+
file: :vertical_file_input,
|
134
|
+
boolean: :vertical_boolean,
|
135
|
+
}
|
136
|
+
end
|
@@ -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,31 @@
|
|
1
|
+
en:
|
2
|
+
simple_form:
|
3
|
+
"yes": 'Yes'
|
4
|
+
"no": 'No'
|
5
|
+
required:
|
6
|
+
text: 'required'
|
7
|
+
mark: '*'
|
8
|
+
# You can uncomment the line below if you need to overwrite the whole required html.
|
9
|
+
# When using html, text and mark won't be used.
|
10
|
+
# html: '<abbr title="required">*</abbr>'
|
11
|
+
error_notification:
|
12
|
+
default_message: "Please review the problems below:"
|
13
|
+
# Examples
|
14
|
+
# labels:
|
15
|
+
# defaults:
|
16
|
+
# password: 'Password'
|
17
|
+
# user:
|
18
|
+
# new:
|
19
|
+
# email: 'E-mail to sign in.'
|
20
|
+
# edit:
|
21
|
+
# email: 'E-mail.'
|
22
|
+
# hints:
|
23
|
+
# defaults:
|
24
|
+
# username: 'User name to sign in.'
|
25
|
+
# password: 'No special characters, please.'
|
26
|
+
# include_blanks:
|
27
|
+
# defaults:
|
28
|
+
# age: 'Rather not say'
|
29
|
+
# prompts:
|
30
|
+
# defaults:
|
31
|
+
# age: 'Select your age'
|