###事例
rails new app でディレクトリを作成し、rails server を実行したところ以下のエラーが発生しました。
###エラーメッセージ
Undefined local variable or method `git_source' for Gemfile from /home/user/app/Gemfile:3
エラーメッセージで検索しましたが解決に該当する記事は見つかりませんでした…。
###該当のソースコード
Gemfile
1git_source(:github) do |repo_name| 2 repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") 3 "https://github.com/#{repo_name}.git" 4end 5
###環境
Ubuntu 14.04.5 LTS
ruby 2.4.0
Rails 5.0.2
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/31 04:35 編集
2017/03/31 06:01
2017/03/31 06:15
2017/03/31 06:38 編集
2017/03/31 07:39