china_city_custom 0.0.7
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 +31 -0
- data/app/assets/javascripts/china_city/application.js.coffee +3 -0
- data/app/assets/javascripts/china_city/jquery.china_city.js.coffee +20 -0
- data/app/assets/stylesheets/china_city/application.css +13 -0
- data/app/controllers/china_city/application_controller.rb +4 -0
- data/app/controllers/china_city/data_controller.rb +13 -0
- data/app/helpers/china_city/application_helper.rb +4 -0
- data/app/views/china_city/data/index.html.erb +37 -0
- data/app/views/layouts/china_city/application.html.erb +12 -0
- data/config/routes.rb +4 -0
- data/db/areas.json +190634 -0
- data/db/district_gb2260_taobao.yml +109 -0
- data/lib/china_city.rb +118 -0
- data/lib/china_city/engine.rb +13 -0
- data/lib/china_city/version.rb +3 -0
- data/lib/china_city_tasks.rake +136 -0
- data/spec/controllers/china_city/data_controller_spec.rb +12 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +14 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +35 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +13 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/log/development.log +306 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/33/33HmA0GjeNhg7VINETW_vaHZQASd814swoVw0nP_LiQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3Z/3ZCuJK9qFvHLIh780uS09GQhocvDDCo08bqOC5Ho07U.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4G/4GsFOVGgD_Ut6KlTgRqT6xQUnnyF_duoqGrT6Zs0bgs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4q/4qhT5ujJUsJ7UA75QoJUnnEoR2GdTWh9JK-8A8bdyV8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5X/5Xg8XePGf8hA9mtLAFILtb4bYGdG2S2dIefOZw8Es3c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7P/7PBzxJvlkvXfNnJe5evaCrsNr9cl1izwyNnbXp60Htc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7b/7bqoYtvfQl2f06MVkcd_wOkQ1xtJ-EWFGNgCcIraWKE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8Y/8YGxnPLNW5Ks2AAN4WuXK-AHe9s-5G15Ns2NwonPACk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9-/9-OZsdqLnIw-113M7RzVhuHVJOGwsi889f5dJay-H5g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/98/98HLPKePQQ5i3t4-IQBi39VVOFqzeikEbEP0Paq5E0U.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9O/9OXRKwOWpRQRNGGdsUjALL9jUCefUFZPMf7BmixQTds.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AT/ATRmM9yBFMMR7AP_m5mS2wDET7jn9Ng1IZw6HShV6LU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CT/CTE71e15rzBB7hZw4eAiB6p-8CgAJb8brGtpgXDVJME.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D-/D-aC5qb-oQGA-X6dTF9GD4JNRuiWVPNqzl70JJwMhDE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Em/Emy67V_UBIEIXIIR3umgdCsrlMs9OZFl3p_r2giOvew.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/I8/I8ofewVBYPjkI6UBSmcubGxn2pW7hLeOtbVMs7mWByE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ii/IiLK3BUtosCpHabq_G4mYv_d7js1550dQAUJOeGamtc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JyGj_nbetYmgMWLwPsVrgfmOZ-PV1-sujoG18R9f9hg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K2/K2kTLbinwbmfmnaal-AWcEUBjjGDLHOcTHdLZWVVYyQ.cache +5 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KL/KLw397sf9uehitdqhxKYDOm1Q8vxG1-9UT-aKdK_fCU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/M-/M-apf7yLJ1vuAm7xH7-9lQCFkW0ikiTdqqzVu4HmQ0E.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nj/Nj_-MPlFTqlaEW9FgO4cmtAe48x3xxaF3NKzQrfb2qs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OJ/OJPcAQ0uEQdn9zUtLmc_bKOZ_Gac6iVNarFXhoT4pkI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OK/OKnrjViY3cCWGYVE33avjFeV_LYrPXffTbUFVAaY7Tw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pv/Pvt3RgYTzrZs2COds9PqGhV3MeJvOe7ZlvA4-Hdhgrc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sh/ShnK5bU37zUiSM9Mul7vI9XfdCk1V6DObjK5nepa5ns.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TX/TX9CLTSCMVBnrcj8mvf3-K0Tx3TK-w3Olnd9d1xBII4.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tw/TwdtXnsW0DvMMdW_1UcDpgSaZYzEwzRcAEOi6KYXIDg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U0/U0ygFtEbyCbFSFIs0BeDio2ax3HE00xt3xN4HFL8n4U.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U5/U5toC7YdNOr8xK6mGj50xNHEBuJx0BfRkIM-KZKBUU0.cache +38 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ur/UrKCad3bch2Zi8rc9c3gd4wS7BryCbgVIUa1_EUOHUo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WH/WHXdny1yoV40hsb8CXIplE4rI22FOjyDxlKOftMICh8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WN/WNFI9vZTiVx0oxycAwxu5E2g2j7hjZqvbh2yl3_IeU0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xr/XrMhrpfdjPnbinzkKGnhoa2dZrICh55_VvFzpyWMxQo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xv/Xvx8iRk0x7tcARxDassziL3f5_jquO5UoalxkjmhcKQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZW/ZWl4hNK2UA_ivqo8pK3RpeErnpVTZo4dbb-WjTE_LNs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zm/ZmQsdS3Lww09iC7jB_VKCelhx2kaZz5nDbwsC3fSidE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dn/dnsZY0XCAQpo6Gx_kBJ_6JqtQ2K39uehtoeAGn2-KKU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dtWiKb0dyTaIsuB15xw_QeAwJVr6N0wWw8-QNH3qrvE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eA/eA4b_UTuargo0Vc8ES-RiQ_StwvZxWydegfn_nylB1k.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iV/iVr9QYQZc2Ze0AdCzSjIqnsZA5JqjSex6EhAZ5_seIY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jB/jBunWgqiY37wrN_MdR9KTwWqQ2n8KNUOGpmnjDUZdrM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kS/kSQdc3K8NPHmTWbGu_Dlc9Mi7FFIR62OMFLO0UMENM0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l8/l8gLlD7duZLmP5pPMXJJ-O1jFNJGHlRgzDa9CW7pWec.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pA/pAfH96wHUcQSUscI24kNUj7KVT5A0WH68yDEvZ1PbjU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rI/rIS7t_cNtHDMD4qiFn_jQSCNKgIsrWM9oUnNFKTX-ug.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sX/sXUdKpzI0Mu6hdNKEwiqZ6M-vzGf3Mpr5iNmLatcaCg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tO/tO0LQLcPrnOUjhB5Naa4v62heRLe_A0PQjdZVEUcJeA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uN/uNK5PSRmy--W_V9kPGPE5qE9EO0Ue4bvDAKCb3rxYKU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wZ/wZZdqNARp6G2Dyg2SNgYRLvdBHYkeIXyiVL--FCLPuA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xY/xYtALLOCvcWjKeBdgNwzfvRqlp0LVLP7y6PLYkAHpe0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xp/xpok6d_Mo9WwxYhAB9UB0hOePQ9YoEtrLNFLZ_0s0HY.cache +1 -0
- data/spec/features/china_city_spec.rb +69 -0
- data/spec/lib/china_city_spec.rb +60 -0
- data/spec/spec_helper.rb +29 -0
- metadata +398 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
+
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/spec/dummy/bin/rake
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
# require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
# require "action_mailer/railtie"
|
7
|
+
require "sprockets/railtie"
|
8
|
+
# require "rails/test_unit/railtie"
|
9
|
+
|
10
|
+
Bundler.require(*Rails.groups)
|
11
|
+
require "china_city"
|
12
|
+
|
13
|
+
module Dummy
|
14
|
+
class Application < Rails::Application
|
15
|
+
# Settings in config/environments/* take precedence over those specified here.
|
16
|
+
# Application configuration should go into files in config/initializers
|
17
|
+
# -- all .rb files in that directory are automatically loaded.
|
18
|
+
|
19
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
20
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
21
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
22
|
+
|
23
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
24
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
25
|
+
# config.i18n.default_locale = :de
|
26
|
+
|
27
|
+
# Rails 3 config
|
28
|
+
# Enable the asset pipeline
|
29
|
+
config.assets.enabled = true
|
30
|
+
|
31
|
+
# Version of your assets, change this if you want to expire all your assets
|
32
|
+
config.assets.version = '1.0'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
20
|
+
|
21
|
+
production:
|
22
|
+
adapter: sqlite3
|
23
|
+
database: db/production.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
# config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations
|
23
|
+
# config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
end
|
@@ -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,13 @@
|
|
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 = '9e1c4ade21b6a468450fcd39549c523c01f0c57c9332f1c23175cf2aa7e4afdd805c88fbdc16a16a4db50133a1b676064020c423e6d241d1db8966f093e481f0'
|
13
|
+
Dummy::Application.config.secret_token = '968e37b544c846d0dd349dbac41cf973d19b603134e139be97b927d8a97037c94ed0da160635b17212a4024e5e70875dafac710642855fb93e62e1efe5161d85'
|
@@ -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,306 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/" for 10.0.2.2 at 2016-05-11 10:07:31 +0200
|
4
|
+
Processing by Rails::WelcomeController#index as HTML
|
5
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/templates/rails/welcome/index.html.erb (17.2ms)
|
6
|
+
Completed 200 OK in 50ms (Views: 49.5ms)
|
7
|
+
|
8
|
+
|
9
|
+
Started GET "/china_city" for 10.0.2.2 at 2016-05-11 10:07:38 +0200
|
10
|
+
Processing by ChinaCity::DataController#index as HTML
|
11
|
+
Rendered /vagrant_data/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (601.5ms)
|
12
|
+
Completed 200 OK in 1817ms (Views: 1816.5ms)
|
13
|
+
|
14
|
+
|
15
|
+
Started GET "/assets/china_city/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for 10.0.2.2 at 2016-05-11 10:07:40 +0200
|
16
|
+
|
17
|
+
|
18
|
+
Started GET "/assets/jquery.self-4c7649dd655c61cb850cfd2e71f937c3bbf3e3a752a3499ed8bb9884473fe1dd.js?body=1" for 10.0.2.2 at 2016-05-11 10:07:40 +0200
|
19
|
+
|
20
|
+
|
21
|
+
Started GET "/assets/china_city/jquery.china_city.self-dd698009de673b5d8aadb91406285ba06f2450c7438b6845b2755621aa84338c.js?body=1" for 10.0.2.2 at 2016-05-11 10:07:40 +0200
|
22
|
+
|
23
|
+
|
24
|
+
Started GET "/assets/china_city/application.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js?body=1" for 10.0.2.2 at 2016-05-11 10:07:40 +0200
|
25
|
+
|
26
|
+
|
27
|
+
Started GET "/china_city/500000" for 10.0.2.2 at 2016-05-11 10:07:44 +0200
|
28
|
+
Processing by ChinaCity::DataController#show as */*
|
29
|
+
Parameters: {"id"=>"500000"}
|
30
|
+
Completed 200 OK in 1ms (Views: 1.0ms)
|
31
|
+
|
32
|
+
|
33
|
+
Started GET "/china_city" for 10.0.2.2 at 2016-05-11 10:09:04 +0200
|
34
|
+
Processing by ChinaCity::DataController#index as HTML
|
35
|
+
Rendered /vagrant_data/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (0.6ms)
|
36
|
+
Completed 500 Internal Server Error in 68ms
|
37
|
+
|
38
|
+
SyntaxError (/vagrant_data/china_city/app/views/china_city/data/index.html.erb:23: syntax error, unexpected ',', expecting ')'
|
39
|
+
...lect(ChinaCity.list, province), 'data-customfunc': 'alert("1...
|
40
|
+
... ^):
|
41
|
+
/vagrant_data/china_city/app/views/china_city/data/index.html.erb:23: syntax error, unexpected ',', expecting ')'
|
42
|
+
...lect(ChinaCity.list, province), 'data-customfunc': 'alert("1...
|
43
|
+
... ^
|
44
|
+
actionview (4.2.5) lib/action_view/template.rb:296:in `module_eval'
|
45
|
+
actionview (4.2.5) lib/action_view/template.rb:296:in `compile'
|
46
|
+
actionview (4.2.5) lib/action_view/template.rb:245:in `block (2 levels) in compile!'
|
47
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:166:in `instrument'
|
48
|
+
actionview (4.2.5) lib/action_view/template.rb:333:in `instrument'
|
49
|
+
actionview (4.2.5) lib/action_view/template.rb:244:in `block in compile!'
|
50
|
+
actionview (4.2.5) lib/action_view/template.rb:232:in `synchronize'
|
51
|
+
actionview (4.2.5) lib/action_view/template.rb:232:in `compile!'
|
52
|
+
actionview (4.2.5) lib/action_view/template.rb:144:in `block in render'
|
53
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:166:in `instrument'
|
54
|
+
actionview (4.2.5) lib/action_view/template.rb:333:in `instrument'
|
55
|
+
actionview (4.2.5) lib/action_view/template.rb:143:in `render'
|
56
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
|
57
|
+
actionview (4.2.5) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
|
58
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `block in instrument'
|
59
|
+
activesupport (4.2.5) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
60
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `instrument'
|
61
|
+
actionview (4.2.5) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
|
62
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
|
63
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
|
64
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
|
65
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:14:in `render'
|
66
|
+
actionview (4.2.5) lib/action_view/renderer/renderer.rb:42:in `render_template'
|
67
|
+
actionview (4.2.5) lib/action_view/renderer/renderer.rb:23:in `render'
|
68
|
+
actionview (4.2.5) lib/action_view/rendering.rb:100:in `_render_template'
|
69
|
+
actionpack (4.2.5) lib/action_controller/metal/streaming.rb:217:in `_render_template'
|
70
|
+
actionview (4.2.5) lib/action_view/rendering.rb:83:in `render_to_body'
|
71
|
+
actionpack (4.2.5) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
|
72
|
+
actionpack (4.2.5) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
|
73
|
+
actionpack (4.2.5) lib/abstract_controller/rendering.rb:25:in `render'
|
74
|
+
actionpack (4.2.5) lib/action_controller/metal/rendering.rb:16:in `render'
|
75
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
|
76
|
+
activesupport (4.2.5) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
|
77
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
|
78
|
+
activesupport (4.2.5) lib/active_support/core_ext/benchmark.rb:12:in `ms'
|
79
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
|
80
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
|
81
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:43:in `render'
|
82
|
+
actionpack (4.2.5) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
83
|
+
actionpack (4.2.5) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
84
|
+
actionpack (4.2.5) lib/abstract_controller/base.rb:198:in `process_action'
|
85
|
+
actionpack (4.2.5) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
86
|
+
actionpack (4.2.5) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
87
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
|
88
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
|
89
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
90
|
+
actionpack (4.2.5) lib/abstract_controller/callbacks.rb:19:in `process_action'
|
91
|
+
actionpack (4.2.5) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
92
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
|
93
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `block in instrument'
|
94
|
+
activesupport (4.2.5) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
95
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `instrument'
|
96
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
97
|
+
actionpack (4.2.5) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
|
98
|
+
actionpack (4.2.5) lib/abstract_controller/base.rb:137:in `process'
|
99
|
+
actionview (4.2.5) lib/action_view/rendering.rb:30:in `process'
|
100
|
+
actionpack (4.2.5) lib/action_controller/metal.rb:196:in `dispatch'
|
101
|
+
actionpack (4.2.5) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
|
102
|
+
actionpack (4.2.5) lib/action_controller/metal.rb:237:in `block in action'
|
103
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:76:in `call'
|
104
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
|
105
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:45:in `serve'
|
106
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
107
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `each'
|
108
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `serve'
|
109
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:817:in `call'
|
110
|
+
railties (4.2.5) lib/rails/engine.rb:518:in `call'
|
111
|
+
railties (4.2.5) lib/rails/railtie.rb:194:in `public_send'
|
112
|
+
railties (4.2.5) lib/rails/railtie.rb:194:in `method_missing'
|
113
|
+
actionpack (4.2.5) lib/action_dispatch/routing/mapper.rb:51:in `serve'
|
114
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
115
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `each'
|
116
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `serve'
|
117
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:817:in `call'
|
118
|
+
rack (1.6.4) lib/rack/etag.rb:24:in `call'
|
119
|
+
rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
|
120
|
+
rack (1.6.4) lib/rack/head.rb:13:in `call'
|
121
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
122
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/flash.rb:260:in `call'
|
123
|
+
rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
|
124
|
+
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
|
125
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/cookies.rb:560:in `call'
|
126
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
127
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
|
128
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
|
129
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
130
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
131
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
132
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
133
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
134
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
135
|
+
railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
|
136
|
+
railties (4.2.5) lib/rails/rack/logger.rb:20:in `block in call'
|
137
|
+
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
138
|
+
activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:in `tagged'
|
139
|
+
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `tagged'
|
140
|
+
railties (4.2.5) lib/rails/rack/logger.rb:20:in `call'
|
141
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
142
|
+
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
|
143
|
+
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
|
144
|
+
activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
145
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
146
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in `call'
|
147
|
+
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
|
148
|
+
railties (4.2.5) lib/rails/engine.rb:518:in `call'
|
149
|
+
railties (4.2.5) lib/rails/application.rb:165:in `call'
|
150
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
151
|
+
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
|
152
|
+
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
|
153
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
154
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
155
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
156
|
+
|
157
|
+
|
158
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms)
|
159
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
|
160
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
|
161
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.0ms)
|
162
|
+
|
163
|
+
|
164
|
+
Started GET "/china_city" for 10.0.2.2 at 2016-05-11 10:09:19 +0200
|
165
|
+
Processing by ChinaCity::DataController#index as HTML
|
166
|
+
Rendered /vagrant_data/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (17.6ms)
|
167
|
+
Completed 500 Internal Server Error in 87ms
|
168
|
+
|
169
|
+
ActionView::Template::Error (wrong number of arguments (3 for 1..2)):
|
170
|
+
20: <div class='html-tag city-group'>
|
171
|
+
21: <select class='city-select city-province'>
|
172
|
+
22: <option>--省份--</option>
|
173
|
+
23: <%= options_for_select(ChinaCity.list, province, 'data-customfunc': 'alert("123")' )%>
|
174
|
+
24: </select>
|
175
|
+
25: <select class='city-select city-city'>
|
176
|
+
26: <option>--城市--</option>
|
177
|
+
actionview (4.2.5) lib/action_view/helpers/form_options_helper.rb:350:in `options_for_select'
|
178
|
+
/vagrant_data/china_city/app/views/china_city/data/index.html.erb:23:in `__vagrant_data_china_city_app_views_china_city_data_index_html_erb__1865658831653862681_70119933398560'
|
179
|
+
actionview (4.2.5) lib/action_view/template.rb:145:in `block in render'
|
180
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:166:in `instrument'
|
181
|
+
actionview (4.2.5) lib/action_view/template.rb:333:in `instrument'
|
182
|
+
actionview (4.2.5) lib/action_view/template.rb:143:in `render'
|
183
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
|
184
|
+
actionview (4.2.5) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
|
185
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `block in instrument'
|
186
|
+
activesupport (4.2.5) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
187
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `instrument'
|
188
|
+
actionview (4.2.5) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
|
189
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
|
190
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
|
191
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
|
192
|
+
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:14:in `render'
|
193
|
+
actionview (4.2.5) lib/action_view/renderer/renderer.rb:42:in `render_template'
|
194
|
+
actionview (4.2.5) lib/action_view/renderer/renderer.rb:23:in `render'
|
195
|
+
actionview (4.2.5) lib/action_view/rendering.rb:100:in `_render_template'
|
196
|
+
actionpack (4.2.5) lib/action_controller/metal/streaming.rb:217:in `_render_template'
|
197
|
+
actionview (4.2.5) lib/action_view/rendering.rb:83:in `render_to_body'
|
198
|
+
actionpack (4.2.5) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
|
199
|
+
actionpack (4.2.5) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
|
200
|
+
actionpack (4.2.5) lib/abstract_controller/rendering.rb:25:in `render'
|
201
|
+
actionpack (4.2.5) lib/action_controller/metal/rendering.rb:16:in `render'
|
202
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
|
203
|
+
activesupport (4.2.5) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
|
204
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
|
205
|
+
activesupport (4.2.5) lib/active_support/core_ext/benchmark.rb:12:in `ms'
|
206
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
|
207
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
|
208
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:43:in `render'
|
209
|
+
actionpack (4.2.5) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
210
|
+
actionpack (4.2.5) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
211
|
+
actionpack (4.2.5) lib/abstract_controller/base.rb:198:in `process_action'
|
212
|
+
actionpack (4.2.5) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
213
|
+
actionpack (4.2.5) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
|
214
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
|
215
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
|
216
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
217
|
+
actionpack (4.2.5) lib/abstract_controller/callbacks.rb:19:in `process_action'
|
218
|
+
actionpack (4.2.5) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
219
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
|
220
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `block in instrument'
|
221
|
+
activesupport (4.2.5) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
222
|
+
activesupport (4.2.5) lib/active_support/notifications.rb:164:in `instrument'
|
223
|
+
actionpack (4.2.5) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
|
224
|
+
actionpack (4.2.5) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
|
225
|
+
actionpack (4.2.5) lib/abstract_controller/base.rb:137:in `process'
|
226
|
+
actionview (4.2.5) lib/action_view/rendering.rb:30:in `process'
|
227
|
+
actionpack (4.2.5) lib/action_controller/metal.rb:196:in `dispatch'
|
228
|
+
actionpack (4.2.5) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
|
229
|
+
actionpack (4.2.5) lib/action_controller/metal.rb:237:in `block in action'
|
230
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:76:in `call'
|
231
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
|
232
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:45:in `serve'
|
233
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
234
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `each'
|
235
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `serve'
|
236
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:817:in `call'
|
237
|
+
railties (4.2.5) lib/rails/engine.rb:518:in `call'
|
238
|
+
railties (4.2.5) lib/rails/railtie.rb:194:in `public_send'
|
239
|
+
railties (4.2.5) lib/rails/railtie.rb:194:in `method_missing'
|
240
|
+
actionpack (4.2.5) lib/action_dispatch/routing/mapper.rb:51:in `serve'
|
241
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:43:in `block in serve'
|
242
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `each'
|
243
|
+
actionpack (4.2.5) lib/action_dispatch/journey/router.rb:30:in `serve'
|
244
|
+
actionpack (4.2.5) lib/action_dispatch/routing/route_set.rb:817:in `call'
|
245
|
+
rack (1.6.4) lib/rack/etag.rb:24:in `call'
|
246
|
+
rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
|
247
|
+
rack (1.6.4) lib/rack/head.rb:13:in `call'
|
248
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
|
249
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/flash.rb:260:in `call'
|
250
|
+
rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
|
251
|
+
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
|
252
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/cookies.rb:560:in `call'
|
253
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
254
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
|
255
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
|
256
|
+
activesupport (4.2.5) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
257
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
258
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
259
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
260
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
261
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
262
|
+
railties (4.2.5) lib/rails/rack/logger.rb:38:in `call_app'
|
263
|
+
railties (4.2.5) lib/rails/rack/logger.rb:20:in `block in call'
|
264
|
+
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
265
|
+
activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:in `tagged'
|
266
|
+
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in `tagged'
|
267
|
+
railties (4.2.5) lib/rails/rack/logger.rb:20:in `call'
|
268
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
269
|
+
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
|
270
|
+
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
|
271
|
+
activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
272
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
273
|
+
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in `call'
|
274
|
+
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
|
275
|
+
railties (4.2.5) lib/rails/engine.rb:518:in `call'
|
276
|
+
railties (4.2.5) lib/rails/application.rb:165:in `call'
|
277
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
278
|
+
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
|
279
|
+
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
|
280
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
|
281
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
|
282
|
+
/home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
|
283
|
+
|
284
|
+
|
285
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms)
|
286
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms)
|
287
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
|
288
|
+
Rendered /home/vagrant/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (26.1ms)
|
289
|
+
|
290
|
+
|
291
|
+
Started GET "/china_city" for 10.0.2.2 at 2016-05-11 10:09:48 +0200
|
292
|
+
Processing by ChinaCity::DataController#index as HTML
|
293
|
+
Rendered /vagrant_data/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (4.5ms)
|
294
|
+
Completed 200 OK in 132ms (Views: 132.2ms)
|
295
|
+
|
296
|
+
|
297
|
+
Started GET "/china_city/510000" for 10.0.2.2 at 2016-05-11 10:09:50 +0200
|
298
|
+
Processing by ChinaCity::DataController#show as */*
|
299
|
+
Parameters: {"id"=>"510000"}
|
300
|
+
Completed 200 OK in 1ms (Views: 0.7ms)
|
301
|
+
|
302
|
+
|
303
|
+
Started GET "/china_city/650000" for 10.0.2.2 at 2016-05-11 10:09:56 +0200
|
304
|
+
Processing by ChinaCity::DataController#show as */*
|
305
|
+
Parameters: {"id"=>"650000"}
|
306
|
+
Completed 200 OK in 1ms (Views: 1.2ms)
|