manifold_mock 0.0.1
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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +32 -0
- data/lib/generators/manifold_mock/install_generator.rb +81 -0
- data/lib/generators/manifold_mock/template_generator.rb +31 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/banded.html.erb +116 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/banner-home.html.erb +125 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/blog.html.erb +154 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/feed.html.erb +165 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/grid.html.erb +258 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/orbit.html.erb +121 -0
- data/lib/generators/manifold_mock/templates/foundation/erb/sidebar.html.erb +111 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/banded.html.haml +88 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/banner-home.html.haml +114 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/blog.html.haml +107 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/feed.html.haml +155 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/grid.html.haml +216 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/orbit.html.haml +90 -0
- data/lib/generators/manifold_mock/templates/foundation/haml/sidebar.html.haml +92 -0
- data/lib/manifold_mock.rb +3 -0
- data/lib/manifold_mock/engine.rb +6 -0
- data/lib/manifold_mock/version.rb +3 -0
- data/lib/tasks/manifold_mock_tasks.rake +4 -0
- data/test/dummy/Gemfile +25 -0
- data/test/dummy/Gemfile.lock +154 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/bootstrap.js.coffee +3 -0
- data/test/dummy/app/assets/javascripts/posts.js.coffee +3 -0
- data/test/dummy/app/assets/stylesheets/application.css +14 -0
- data/test/dummy/app/assets/stylesheets/bootstrap_and_overrides.css.less +30 -0
- data/test/dummy/app/assets/stylesheets/foundation_and_overrides.scss +1327 -0
- data/test/dummy/app/assets/stylesheets/posts.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/scaffolds.css.scss +69 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/posts_controller.rb +74 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.haml +51 -0
- data/test/dummy/app/views/posts/_form.html.haml +16 -0
- data/test/dummy/app/views/posts/edit.html.haml +7 -0
- data/test/dummy/app/views/posts/index.html.haml +21 -0
- data/test/dummy/app/views/posts/index.json.jbuilder +4 -0
- data/test/dummy/app/views/posts/new.html.haml +5 -0
- data/test/dummy/app/views/posts/show.html.haml +12 -0
- data/test/dummy/app/views/posts/show.json.jbuilder +1 -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 +23 -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 +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -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 +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.bootstrap.yml +18 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +59 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131007094911_create_posts.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/log/development.log +197 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/posts.yml +9 -0
- data/test/dummy/test/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/models/post_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sass/5e65457e8790b21bb66467547fe443e595671eb3/foundation.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_alert-boxes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_block-grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_clearing.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_custom-forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_dropdown-buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_dropdown.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_flex-video.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_global.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_inline-lists.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_joyride.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_keystrokes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_magellan.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_orbit.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_pricing-tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_reveal.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_section.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_side-nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_split-buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_sub-nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_switch.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_thumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_tooltips.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_top-bar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_type.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_visibility.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/be6f7d6cf81a3a6db6a6427662e44ee1833019b8/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e7dc89e57f627c5c3457f0061b0f44a437e7d241/foundation_and_overrides.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e7dc89e57f627c5c3457f0061b0f44a437e7d241/posts.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e7dc89e57f627c5c3457f0061b0f44a437e7d241/scaffolds.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0934a74c755b91d39cd860f2b897d7bc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/10fcfbe6ebae11a40c8eac41939a1b9a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/165eb35b3e23ae584ab844cf21488572 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/18c8a8fcbdedca1a677c9ea1298b273f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21510ea8264eaa94d48104f903b60f39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22a3157d204c1f8e417a25f01a2dbe45 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2d64858078c6c6e2fe621b48bb2f44a9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3351b9ef3e02dfcb9d76588dd6a475f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3cf98597bf272087f067e87accd6285c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/40e4dc27315c8bb23ab744a9b4109d6d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e7cdefcf4831cb825b0a438f825f4a0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6654975eaa53a225d976278fcb6baa00 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b17de2aa94f5206252e277afe1df40c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8b590831eed712236b632c539da643e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c2b061e379a23e7c4d207adcf992462 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9ef8b3034506be9061b9df2e00698d80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9f93e00a58310561d1989b82ab7b83a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9fdd00562d6dea819db33bdf1f5cab5b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aada318492cd92ae01885ef3911e2717 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ab5e341e947338186835e48f72b4c2c3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b2d287803ed50906ebd76cf0a5bbecf2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7fc7a50cc3464d16f378714639f14e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bd3936370d0f952ada5774e2230046ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0541f37a48c06469f284192ae351f9c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c2489d6227dee3af2d88176e1f66e4d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c4a4cc465b11c1d68b8c960371d85011 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc1ffaac4063f53e674de93611e89494 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d585a06e2ee6203ccb04c8b84150d14d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/df2bac93507eb6002368de3d3175b3f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e459168835a5f27b832ace20874f7c10 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e523d4e30ed8f7c8ee17d9353278f127 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f767bf7733f9d255bda5d7ad033ab87f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fdfbe7dc13d28459fd24dc948e666efa +0 -0
- data/test/manifold_mock_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +374 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
Dummy::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
|
+
end
|
@@ -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,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = '6a1406e64a2321c189b6c63177efde533f5284b07dd00b4ecf1f0ead084f913940f705fa7311a4032489f0b3b123615f4da96f372da1f01e0aaf89d7891498b6'
|
@@ -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,18 @@
|
|
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
|
+
helpers:
|
6
|
+
actions: "Actions"
|
7
|
+
links:
|
8
|
+
back: "Back"
|
9
|
+
cancel: "Cancel"
|
10
|
+
confirm: "Are you sure?"
|
11
|
+
destroy: "Delete"
|
12
|
+
new: "New"
|
13
|
+
edit: "Edit"
|
14
|
+
titles:
|
15
|
+
edit: "Edit %{model}"
|
16
|
+
save: "Save %{model}"
|
17
|
+
new: "New %{model}"
|
18
|
+
delete: "Delete %{model}"
|
@@ -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,59 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
resources :posts
|
3
|
+
root "posts#index"
|
4
|
+
|
5
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
6
|
+
# See how all your routes lay out with "rake routes".
|
7
|
+
|
8
|
+
# You can have the root of your site routed with "root"
|
9
|
+
# root 'welcome#index'
|
10
|
+
|
11
|
+
# Example of regular route:
|
12
|
+
# get 'products/:id' => 'catalog#view'
|
13
|
+
|
14
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
15
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
16
|
+
|
17
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
18
|
+
# resources :products
|
19
|
+
|
20
|
+
# Example resource route with options:
|
21
|
+
# resources :products do
|
22
|
+
# member do
|
23
|
+
# get 'short'
|
24
|
+
# post 'toggle'
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# collection do
|
28
|
+
# get 'sold'
|
29
|
+
# end
|
30
|
+
# end
|
31
|
+
|
32
|
+
# Example resource route with sub-resources:
|
33
|
+
# resources :products do
|
34
|
+
# resources :comments, :sales
|
35
|
+
# resource :seller
|
36
|
+
# end
|
37
|
+
|
38
|
+
# Example resource route with more complex sub-resources:
|
39
|
+
# resources :products do
|
40
|
+
# resources :comments
|
41
|
+
# resources :sales do
|
42
|
+
# get 'recent', on: :collection
|
43
|
+
# end
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Example resource route with concerns:
|
47
|
+
# concern :toggleable do
|
48
|
+
# post 'toggle'
|
49
|
+
# end
|
50
|
+
# resources :posts, concerns: :toggleable
|
51
|
+
# resources :photos, concerns: :toggleable
|
52
|
+
|
53
|
+
# Example resource route within a namespace:
|
54
|
+
# namespace :admin do
|
55
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
56
|
+
# # (app/controllers/admin/products_controller.rb)
|
57
|
+
# resources :products
|
58
|
+
# end
|
59
|
+
end
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20131007094911) do
|
15
|
+
|
16
|
+
create_table "posts", force: true do |t|
|
17
|
+
t.string "title"
|
18
|
+
t.text "body"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,197 @@
|
|
1
|
+
[1m[36m (170.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (109.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreatePosts (20131007094911)
|
5
|
+
[1m[35m (0.2ms)[0m begin transaction
|
6
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131007094911"]]
|
8
|
+
[1m[36m (133.0ms)[0m [1mcommit transaction[0m
|
9
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10
|
+
|
11
|
+
|
12
|
+
Started GET "/" for 127.0.0.1 at 2013-10-07 17:49:29 +0800
|
13
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14
|
+
Processing by Rails::WelcomeController#index as HTML
|
15
|
+
Rendered /home/irenepobre/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/templates/rails/welcome/index.html.erb (10.1ms)
|
16
|
+
Completed 200 OK in 112ms (Views: 87.3ms | ActiveRecord: 0.0ms)
|
17
|
+
|
18
|
+
|
19
|
+
Started GET "/" for 127.0.0.1 at 2013-10-07 17:49:57 +0800
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
Processing by PostsController#index as HTML
|
22
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
23
|
+
Rendered posts/index.html.haml within layouts/application (5.0ms)
|
24
|
+
Completed 200 OK in 3580ms (Views: 3554.0ms | ActiveRecord: 0.4ms)
|
25
|
+
|
26
|
+
|
27
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:01 +0800
|
28
|
+
|
29
|
+
|
30
|
+
Started GET "/assets/foundation_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:01 +0800
|
31
|
+
|
32
|
+
|
33
|
+
Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:01 +0800
|
34
|
+
|
35
|
+
|
36
|
+
Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:01 +0800
|
37
|
+
|
38
|
+
|
39
|
+
Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:01 +0800
|
40
|
+
|
41
|
+
|
42
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:01 +0800
|
43
|
+
|
44
|
+
|
45
|
+
Started GET "/" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
46
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
47
|
+
Processing by PostsController#index as HTML
|
48
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
49
|
+
Rendered posts/index.html.haml within layouts/application (5.1ms)
|
50
|
+
Completed 200 OK in 157ms (Views: 131.7ms | ActiveRecord: 0.4ms)
|
51
|
+
|
52
|
+
|
53
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
54
|
+
|
55
|
+
|
56
|
+
Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
57
|
+
|
58
|
+
|
59
|
+
Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
60
|
+
|
61
|
+
|
62
|
+
Started GET "/assets/vendor/custom.modernizr.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
63
|
+
|
64
|
+
|
65
|
+
Started GET "/assets/foundation_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
66
|
+
|
67
|
+
|
68
|
+
Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
69
|
+
|
70
|
+
|
71
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:30 +0800
|
72
|
+
|
73
|
+
|
74
|
+
Started GET "/" for 127.0.0.1 at 2013-10-07 17:50:51 +0800
|
75
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
76
|
+
Processing by PostsController#index as HTML
|
77
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
78
|
+
Rendered posts/index.html.haml within layouts/application (5.6ms)
|
79
|
+
Completed 200 OK in 138ms (Views: 112.6ms | ActiveRecord: 0.4ms)
|
80
|
+
|
81
|
+
|
82
|
+
Started GET "/assets/foundation_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
83
|
+
|
84
|
+
|
85
|
+
Started GET "/assets/vendor/custom.modernizr.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
86
|
+
|
87
|
+
|
88
|
+
Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
89
|
+
|
90
|
+
|
91
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
92
|
+
|
93
|
+
|
94
|
+
Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
95
|
+
|
96
|
+
|
97
|
+
Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
98
|
+
|
99
|
+
|
100
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-07 17:50:52 +0800
|
101
|
+
|
102
|
+
|
103
|
+
Started GET "/" for 127.0.0.1 at 2013-10-07 17:52:05 +0800
|
104
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
105
|
+
Processing by PostsController#index as HTML
|
106
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts"
|
107
|
+
Rendered posts/index.html.haml within layouts/application (10.1ms)
|
108
|
+
Completed 200 OK in 1519ms (Views: 1488.9ms | ActiveRecord: 0.7ms)
|
109
|
+
|
110
|
+
|
111
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
112
|
+
|
113
|
+
|
114
|
+
Started GET "/assets/foundation_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
115
|
+
|
116
|
+
|
117
|
+
Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
118
|
+
|
119
|
+
|
120
|
+
Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
121
|
+
|
122
|
+
|
123
|
+
Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
124
|
+
|
125
|
+
|
126
|
+
Started GET "/assets/bootstrap_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
127
|
+
|
128
|
+
|
129
|
+
Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
130
|
+
|
131
|
+
|
132
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-07 17:52:07 +0800
|
133
|
+
|
134
|
+
|
135
|
+
Started GET "/images/favicon.ico" for 127.0.0.1 at 2013-10-07 17:52:08 +0800
|
136
|
+
|
137
|
+
ActionController::RoutingError (No route matches [GET] "/images/favicon.ico"):
|
138
|
+
actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
139
|
+
actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
140
|
+
railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
|
141
|
+
railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
|
142
|
+
activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
|
143
|
+
activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
|
144
|
+
activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
|
145
|
+
railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
|
146
|
+
actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
147
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
148
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
149
|
+
activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
|
150
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
151
|
+
actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
|
152
|
+
railties (4.0.0) lib/rails/engine.rb:511:in `call'
|
153
|
+
railties (4.0.0) lib/rails/application.rb:97:in `call'
|
154
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
155
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
156
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
157
|
+
/home/irenepobre/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
158
|
+
/home/irenepobre/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
159
|
+
/home/irenepobre/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
160
|
+
|
161
|
+
|
162
|
+
Rendered /home/irenepobre/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
|
163
|
+
Rendered /home/irenepobre/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.7ms)
|
164
|
+
Rendered /home/irenepobre/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (17.6ms)
|
165
|
+
Rendered /home/irenepobre/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (57.2ms)
|
166
|
+
|
167
|
+
|
168
|
+
Started GET "/" for 127.0.0.1 at 2013-10-07 17:52:27 +0800
|
169
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
170
|
+
Processing by PostsController#index as HTML
|
171
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
172
|
+
Rendered posts/index.html.haml within layouts/application (5.9ms)
|
173
|
+
Completed 200 OK in 147ms (Views: 120.7ms | ActiveRecord: 0.4ms)
|
174
|
+
|
175
|
+
|
176
|
+
Started GET "/assets/foundation_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
177
|
+
|
178
|
+
|
179
|
+
Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
180
|
+
|
181
|
+
|
182
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
183
|
+
|
184
|
+
|
185
|
+
Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
186
|
+
|
187
|
+
|
188
|
+
Started GET "/assets/bootstrap_and_overrides.css?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
189
|
+
|
190
|
+
|
191
|
+
Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
192
|
+
|
193
|
+
|
194
|
+
Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|
195
|
+
|
196
|
+
|
197
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-07 17:52:28 +0800
|