rbenv移行後、ruby, gem, railsがMacプリインストール版を参照していないか確認。
初学者が gem install
や rails generate
コマンドでコケる概ねの理由を占めている気がする。
参考: http://kinacom.hatenablog.jp/entry/2015/10/21/164134
- Make Controller:
rails generate controller {contorollerName} {actionName}
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...