数据库不可以被使用!
gem 'rb-readline'
https://stackoverflow.com/questions/40671803/library-not-loaded-usr-local-opt-readline-lib-libreadline-6-dylib-loaderror
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1 ⮀ bundle install
Using rake 12.3.2
Using concurrent-ruby 1.1.4
Using i18n 1.6.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.2
Using builder 3.2.3
Using erubi 1.8.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.1
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.2
Using rack 2.0.6
Using rack-test 1.1.0
Using actionpack 5.2.2
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.2
Using globalid 0.4.2
Using activejob 5.2.2
Using mini_mime 1.0.1
Using mail 2.7.1
Using actionmailer 5.2.2
Using activemodel 5.2.2
Using arel 9.0.0
Using activerecord 5.2.2
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.2
Using public_suffix 3.0.3
Using addressable 2.6.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using bindex 0.5.0
Using msgpack 1.2.7
Using bootsnap 1.4.1
Using bundler 1.16.0
Using byebug 11.0.0
Using regexp_parser 1.3.0
Using xpath 3.2.0
Using capybara 3.14.0
Using ffi 1.10.0
Using childprocess 0.9.0
Using chromedriver-helper 2.1.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.2
Using coffee-rails 4.2.2
Using multi_json 1.13.1
Using jbuilder 2.8.0
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using puma 3.12.0
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.2
Using rubyzip 1.2.2
Using sass-listen 4.0.0
Using sass 3.7.3
Using tilt 2.0.9
Using sass-rails 5.0.7
Using selenium-webdriver 3.141.0
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.3.13
Using turbolinks-source 5.2.0
Using turbolinks 5.2.0
Using uglifier 4.1.20
Using web-console 3.7.0
Bundle complete! 18 Gemfile dependencies, 79 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ rails g model job title:string description:text
Running via Spring preloader in process 8073
invoke active_record
create db/migrate/20190306025954_create_jobs.rb
create app/models/job.rb
invoke test_unit
create test/models/job_test.rb
create test/fixtures/jobs.yml
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ rake db:migrate
== 20190306025954 CreateJobs: migrating =======================================
-- create_table(:jobs)
-> 0.0017s
== 20190306025954 CreateJobs: migrated (0.0018s) ==============================
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ rails g controller jobs
Running via Spring preloader in process 8131
create app/controllers/jobs_controller.rb
invoke erb
create app/views/jobs
invoke test_unit
create test/controllers/jobs_controller_test.rb
invoke helper
create app/helpers/jobs_helper.rb
invoke test_unit
invoke assets
invoke coffee
create app/assets/javascripts/jobs.coffee
invoke scss
create app/assets/stylesheets/jobs.scss
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ atom .
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ rails s
=> Booting Puma
=> Rails 5.2.2 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.12.0 (ruby 2.3.1-p112), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop
Started GET "/" for 127.0.0.1 at 2019-03-06 11:02:31 +0800
(0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
↳ /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/log_subscriber.rb:98
Processing by JobsController#index as HTML
Rendering jobs/index.html.erb within layouts/application
Job Load (0.2ms) SELECT "jobs".* FROM "jobs"
↳ app/views/jobs/index.html.erb:2
Rendered jobs/index.html.erb within layouts/application (4.2ms)
Completed 200 OK in 947ms (Views: 926.7ms | ActiveRecord: 0.5ms)
Started GET "/job.index" for 127.0.0.1 at 2019-03-06 11:02:50 +0800
ActionController::RoutingError (No route matches [GET] "/job.index"):
actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `call'
actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.2) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.0.6) lib/rack/method_override.rb:22:in `call'
rack (2.0.6) lib/rack/runtime.rb:22:in `call'
activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.0.6) lib/rack/sendfile.rb:111:in `call'
railties (5.2.2) lib/rails/engine.rb:524:in `call'
puma (3.12.0) lib/puma/configuration.rb:225:in `call'
puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
puma (3.12.0) lib/puma/server.rb:472:in `process_client'
puma (3.12.0) lib/puma/server.rb:332:in `block in run'
puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'
^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2019-03-06 11:02:55 +0800 ===
- Goodbye!
Exiting
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ rails c
Running via Spring preloader in process 8270
/Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': dlopen(/Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)
Referenced from: /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle
Reason: image not found - /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/irb/completion.rb:10:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/commands/console/console_command.rb:4:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:84:in `block (2 levels) in lookup'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:80:in `each'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:80:in `block in lookup'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:79:in `each'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:79:in `lookup'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command.rb:70:in `find_by_namespace'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command.rb:44:in `invoke'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/commands.rb:18:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/newspace/xiaoweinote/bin/rails:9:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `block in load'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `load'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
✘ xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ git checkout mastet
error: pathspec 'mastet' did not match any file(s) known to git.
✘ xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ step1± ⮀ git checkout master
M Gemfile
M Gemfile.lock
M config/routes.rb
Switched to branch 'master'
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ master± ⮀ cd
xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀ cd
xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀ cd
xiaowei@192 ⮀ ~ ⮀ ⭠ master± ⮀ cd newspace
xiaowei@192 ⮀ ~/newspace ⮀ ⭠ master± ⮀ ls
api_exercise redmine siweijinghua xiaoweinote xiaoweiworkday
xiaowei@192 ⮀ ~/newspace ⮀ ⭠ master± ⮀ cd xiaoweibote
cd: no such file or directory: xiaoweibote
✘ xiaowei@192 ⮀ ~/newspace ⮀ ⭠ master± ⮀ cd xiaoweinote
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ master± ⮀ rails c
Running via Spring preloader in process 8640
/Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': dlopen(/Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)
Referenced from: /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle
Reason: image not found - /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/irb/completion.rb:10:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/commands/console/console_command.rb:4:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:84:in `block (2 levels) in lookup'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:80:in `each'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:80:in `block in lookup'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:79:in `each'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command/behavior.rb:79:in `lookup'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command.rb:70:in `find_by_namespace'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/command.rb:44:in `invoke'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/railties-5.2.2/lib/rails/commands.rb:18:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:83:in `register'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
from /Users/xiaowei/newspace/xiaoweinote/bin/rails:9:in `<main>'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/bootsnap-1.4.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `block in load'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `load'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/xiaowei/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
✘ xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ master± ⮀ ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
ln: /usr/local/opt/readline/lib/libreadline.6.dylib: File exists
✘ xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ master± ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.2
Using concurrent-ruby 1.1.4
Using i18n 1.6.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.2
Using builder 3.2.3
Using erubi 1.8.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.1
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.2
Using rack 2.0.6
Using rack-test 1.1.0
Using actionpack 5.2.2
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.2
Using globalid 0.4.2
Using activejob 5.2.2
Using mini_mime 1.0.1
Using mail 2.7.1
Using actionmailer 5.2.2
Using activemodel 5.2.2
Using arel 9.0.0
Using activerecord 5.2.2
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.2
Using public_suffix 3.0.3
Using addressable 2.6.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using bindex 0.5.0
Using msgpack 1.2.7
Using bootsnap 1.4.1
Using bundler 1.16.0
Using byebug 11.0.0
Using regexp_parser 1.3.0
Using xpath 3.2.0
Using capybara 3.14.0
Using ffi 1.10.0
Using childprocess 0.9.0
Using chromedriver-helper 2.1.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.2
Using coffee-rails 4.2.2
Using multi_json 1.13.1
Using jbuilder 2.8.0
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using puma 3.12.0
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.2
Fetching rb-readline 0.5.5
Installing rb-readline 0.5.5
Using rubyzip 1.2.2
Using sass-listen 4.0.0
Using sass 3.7.3
Using tilt 2.0.9
Using sass-rails 5.0.7
Using selenium-webdriver 3.141.0
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.3.13
Using turbolinks-source 5.2.0
Using turbolinks 5.2.0
Using uglifier 4.1.20
Using web-console 3.7.0
Bundle complete! 19 Gemfile dependencies, 80 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ master± ⮀ rails c
Running via Spring preloader in process 8709
Loading development environment (Rails 5.2.2)
2.3.1 :001 > Job.create!(:title => "Foo", :description => "Bar")
(0.1ms) begin transaction
Job Create (2.6ms) INSERT INTO "jobs" ("title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Foo"], ["description", "Bar"], ["created_at", "2019-03-06 06:13:19.780069"], ["updated_at", "2019-03-06 06:13:19.780069"]]
(3.3ms) commit transaction
=> #<Job id: 1, title: "Foo", description: "Bar", created_at: "2019-03-06 06:13:19", updated_at: "2019-03-06 06:13:19">
2.3.1 :002 > Job.create!(:title => "Bar", :description => "Foo")
(0.1ms) begin transaction
Job Create (0.8ms) INSERT INTO "jobs" ("title", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bar"], ["description", "Foo"], ["created_at", "2019-03-06 06:13:26.952258"], ["updated_at", "2019-03-06 06:13:26.952258"]]
(8.5ms) commit transaction
=> #<Job id: 2, title: "Bar", description: "Foo", created_at: "2019-03-06 06:13:26", updated_at: "2019-03-06 06:13:26">
2.3.1 :003 > exit
xiaowei@192 ⮀ ~/newspace/xiaoweinote ⮀ ⭠ master± ⮀ rails s
=> Booting Puma
=> Rails 5.2.2 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.12.0 (ruby 2.3.1-p112), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop
Started GET "/jobs" for 127.0.0.1 at 2019-03-06 14:13:55 +0800
(0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
↳ /Users/xiaowei/.rvm/gems/ruby-2.3.1/gems/activerecord-5.2.2/lib/active_record/log_subscriber.rb:98
Processing by JobsController#index as HTML
Rendering jobs/index.html.erb within layouts/application
Job Load (0.2ms) SELECT "jobs".* FROM "jobs"
↳ app/views/jobs/index.html.erb:2
Rendered jobs/index.html.erb within layouts/application (23.1ms)
Completed 200 OK in 296ms (Views: 281.7ms | ActiveRecord: 0.8ms)
网友评论