OS:windows10
http://openbook4.me/projects/92/sections/488
を見ながら、
rails g controller users index show
を実行したところ、
Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine. Run `bundle install` to install missing gems.
というメッセージが出たので、
bundle install
を実行したのですが、再び
Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine. Run `bundle install` to install missing gems.
というエラーが出てきます。
どのようにビューとコントローラーを作ればよいか教えてください。
(追記)
bundle install を繰り返すと以下のエラーがでてきました。
Fetching gem metadata from https://rubygems.org/........... Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies............. Using rake 10.5.0 Using i18n 0.7.0 Installing json 1.8.3 with native extensions Gem::InstallError: The 'json' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' Using minitest 5.8.4 Using thread_safe 0.3.5 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile2 2.0.0 Using rack 1.6.4 Using mime-types 2.99 Using arel 6.0.3 Installing debug_inspector 0.0.2 with native extensions Gem::InstallError: The 'debug_inspector' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' Using bundler 1.11.2 Installing byebug 8.2.2 with native extensions Gem::InstallError: The 'byebug' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' Using coffee-script-source 1.10.0 Using execjs 2.6.0 Using thor 0.19.1 Using concurrent-ruby 1.0.0 Using multi_json 1.11.2 Using sass 3.4.21 Using tilt 2.0.2 Using sqlite3 1.3.11 An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
DEVELOPMENT KITインストール後
C:\devkit>ruby dk.rb init Initialization complete! Please review and modify the auto-generated 'config.yml' file to ensure it contains the root directories to all of the installed Rubies you want enhanced by the DevKit. C:\devkit>ruby dk.rb install Invalid configuration or no Rubies listed. Please fix 'config.yml' and rerun 'ruby dk.rb install' C:\devkit>
というエラーが出ています。config.yml をどう編集すればよいでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/02/14 02:18