質問編集履歴

3 文法の修正

kiki142

kiki142 score 5

2018/09/26 20:50  投稿

rails new sample appと打ってこの文が出てきたので言う通りbundle updateを実行しましたが同じ下記の文が出ます  教えていただけると光栄です
```
コード exist
identical README.md
identical Rakefile
identical .ruby-version
identical config.ru
conflict .gitignore
Overwrite /Users//sample/.gitignore? (enter "h" for help) [Ynaqdh]
force .gitignore
identical Gemfile
run git init from "."
Reinitialized existing Git repository in /Users//sample/.git/
identical package.json
exist app
identical app/assets/config/manifest.js
identical app/assets/javascripts/application.js
identical app/assets/javascripts/cable.js
identical app/assets/stylesheets/application.css
identical app/channels/application_cable/channel.rb
identical app/channels/application_cable/connection.rb
identical app/controllers/application_controller.rb
identical app/helpers/application_helper.rb
identical app/jobs/application_job.rb
identical app/mailers/application_mailer.rb
identical app/models/application_record.rb
identical app/views/layouts/application.html.erb
identical app/views/layouts/mailer.html.erb
identical app/views/layouts/mailer.text.erb
identical app/assets/images/.keep
exist app/assets/javascripts/channels
identical app/assets/javascripts/channels/.keep
identical app/controllers/concerns/.keep
identical app/models/concerns/.keep
exist bin
identical bin/bundle
identical bin/rails
identical bin/rake
identical bin/setup
identical bin/update
identical bin/yarn
exist config
identical config/routes.rb
identical config/application.rb
identical config/environment.rb
identical config/cable.yml
identical config/puma.rb
identical config/spring.rb
identical config/storage.yml
exist config/environments
identical config/environments/development.rb
identical config/environments/production.rb
identical config/environments/test.rb
exist config/initializers
identical config/initializers/application_controller_renderer.rb
identical config/initializers/assets.rb
identical config/initializers/backtrace_silencers.rb
identical config/initializers/content_security_policy.rb
identical config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
identical config/initializers/filter_parameter_logging.rb
identical config/initializers/inflections.rb
identical config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_2.rb
identical config/initializers/wrap_parameters.rb
exist config/locales
identical config/locales/en.yml
append .gitignore
identical config/boot.rb
identical config/database.yml
exist db
identical db/seeds.rb
exist lib
exist lib/tasks
identical lib/tasks/.keep
exist lib/assets
identical lib/assets/.keep
exist log
identical log/.keep
exist public
identical public/404.html
identical public/422.html
identical public/500.html
identical public/apple-touch-icon-precomposed.png
identical public/apple-touch-icon.png
identical public/favicon.ico
identical public/robots.txt
exist tmp
identical tmp/.keep
exist tmp/cache
exist tmp/cache/assets
exist vendor
identical vendor/.keep
exist test/fixtures
identical test/fixtures/.keep
exist test/fixtures/files
identical test/fixtures/files/.keep
exist test/controllers
identical test/controllers/.keep
exist test/mailers
identical test/mailers/.keep
exist test/models
identical test/models/.keep
exist test/helpers
identical test/helpers/.keep
exist test/integration
identical test/integration/.keep
identical test/test_helper.rb
exist test/system
identical test/system/.keep
identical test/application_system_test_case.rb
exist storage
identical storage/.keep
exist tmp/storage
identical tmp/storage/.keep
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_2.rb
run 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...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (= 4.2.1)
In Gemfile:
rails (~> 5.2.1) was resolved to 5.2.1, which depends on
activesupport (= 5.2.1)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
railties (< 6, >= 4.0.0) was resolved to 4.2.1, which depends on
activesupport (= 4.2.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
run bundle exec spring binstub --all
Could not find gem 'puma (~> 3.11)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
```使っているpcはmacbookです
  • Ruby on Rails

    9026 questions

    Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

2 文法の修正

kiki142

kiki142 score 5

2018/09/26 20:49  投稿

ails new sampleと打ってもアプリ作成が出来ません。この文の言う通りbundle installをしっかりインストールしたのに下記の文が出ます、その場合gemfileの中身を打てばいいと聞いたのですがruby on RailsのプロジェクトがあるディレクトリのルートにGemfileという拡張子のないファイルがあると聞いたのですがどこにあるか分からないです、rails new sampleで作られたディレクトリにあるそうですが下のような文字が出る為そもそもディレクトリと言うものが作られているのかも分かりません誰か教えて頂けると光栄です  
rails new sample appと打ってこの文が出てきたので言う通りbundle updateを実行しましたが同じ下記の文が出ます  教えていただけると光栄です
```
コード  exist 
  identical README.md
  identical Rakefile
  identical .ruby-version
  identical config.ru
   conflict .gitignore
Overwrite /Users//sample/.gitignore? (enter "h" for help) [Ynaqdh]
      force .gitignore
  identical Gemfile
        run git init from "."
Reinitialized existing Git repository in /Users//sample/.git/
  identical package.json
      exist app
  identical app/assets/config/manifest.js
  identical app/assets/javascripts/application.js
  identical app/assets/javascripts/cable.js
  identical app/assets/stylesheets/application.css
  identical app/channels/application_cable/channel.rb
  identical app/channels/application_cable/connection.rb
  identical app/controllers/application_controller.rb
  identical app/helpers/application_helper.rb
  identical app/jobs/application_job.rb
  identical app/mailers/application_mailer.rb
  identical app/models/application_record.rb
  identical app/views/layouts/application.html.erb
  identical app/views/layouts/mailer.html.erb
  identical app/views/layouts/mailer.text.erb
  identical app/assets/images/.keep
      exist app/assets/javascripts/channels
  identical app/assets/javascripts/channels/.keep
  identical app/controllers/concerns/.keep
  identical app/models/concerns/.keep
      exist bin
  identical bin/bundle
  identical bin/rails
  identical bin/rake
  identical bin/setup
  identical bin/update
  identical bin/yarn
      exist config
  identical config/routes.rb
  identical config/application.rb
  identical config/environment.rb
  identical config/cable.yml
  identical config/puma.rb
  identical config/spring.rb
  identical config/storage.yml
      exist config/environments
  identical config/environments/development.rb
  identical config/environments/production.rb
  identical config/environments/test.rb
      exist config/initializers
  identical config/initializers/application_controller_renderer.rb
  identical config/initializers/assets.rb
  identical config/initializers/backtrace_silencers.rb
  identical config/initializers/content_security_policy.rb
  identical config/initializers/cookies_serializer.rb
     create config/initializers/cors.rb
  identical config/initializers/filter_parameter_logging.rb
  identical config/initializers/inflections.rb
  identical config/initializers/mime_types.rb
     create config/initializers/new_framework_defaults_5_2.rb
  identical config/initializers/wrap_parameters.rb
      exist config/locales
  identical config/locales/en.yml
     append .gitignore
  identical config/boot.rb
  identical config/database.yml
      exist db
  identical db/seeds.rb
      exist lib
      exist lib/tasks
  identical lib/tasks/.keep
      exist lib/assets
  identical lib/assets/.keep
      exist log
  identical log/.keep
      exist public
  identical public/404.html
  identical public/422.html
  identical public/500.html
  identical public/apple-touch-icon-precomposed.png
  identical public/apple-touch-icon.png
  identical public/favicon.ico
  identical public/robots.txt
      exist tmp
  identical tmp/.keep
      exist tmp/cache
      exist tmp/cache/assets
      exist vendor
  identical vendor/.keep
      exist test/fixtures
  identical test/fixtures/.keep
      exist test/fixtures/files
  identical test/fixtures/files/.keep
      exist test/controllers
  identical test/controllers/.keep
      exist test/mailers
  identical test/mailers/.keep
      exist test/models
  identical test/models/.keep
      exist test/helpers
  identical test/helpers/.keep
      exist test/integration
  identical test/integration/.keep
  identical test/test_helper.rb
      exist test/system
  identical test/system/.keep
  identical test/application_system_test_case.rb
      exist storage
  identical storage/.keep
      exist tmp/storage
  identical tmp/storage/.keep
     remove config/initializers/cors.rb
     remove config/initializers/new_framework_defaults_5_2.rb
        run 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...
Bundler could not find compatible versions for gem "activesupport":
 In snapshot (Gemfile.lock):
   activesupport (= 4.2.1)
 In Gemfile:
   rails (~> 5.2.1) was resolved to 5.2.1, which depends on
     activesupport (= 5.2.1)
   sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
     railties (< 6, >= 4.0.0) was resolved to 4.2.1, which depends on
       activesupport (= 4.2.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
        run bundle exec spring binstub --all
Could not find gem 'puma (~> 3.11)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
```使っているpcはmacbookです
  • Ruby on Rails

    9026 questions

    Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

1 初心者マーク

kiki142

kiki142 score 5

2018/09/26 16:50  投稿

ruby on rails環境構築 rails new sampleと打ってもアプリ作成ができないのでgemfileの中身を貼り付けたいのですがどうすればいいですか?
ails new sampleと打ってもアプリ作成が出来ません。この文の言う通りbundle installをしっかりインストールしたのに下記の文が出ます、その場合gemfileの中身を打てばいいと聞いたのですがruby on RailsのプロジェクトがあるディレクトリのルートにGemfileという拡張子のないファイルがあると聞いたのですがどこにあるか分からないです、rails new sampleで作られたディレクトリにあるそうですが下のような文字が出る為そもそもディレクトリと言うものが作られているのかも分かりません誰か教えて頂けると光栄です  
```
コード exist
identical README.md
identical Rakefile
identical .ruby-version
identical config.ru
conflict .gitignore
Overwrite /Users//sample/.gitignore? (enter "h" for help) [Ynaqdh]
force .gitignore
identical Gemfile
run git init from "."
Reinitialized existing Git repository in /Users//sample/.git/
identical package.json
exist app
identical app/assets/config/manifest.js
identical app/assets/javascripts/application.js
identical app/assets/javascripts/cable.js
identical app/assets/stylesheets/application.css
identical app/channels/application_cable/channel.rb
identical app/channels/application_cable/connection.rb
identical app/controllers/application_controller.rb
identical app/helpers/application_helper.rb
identical app/jobs/application_job.rb
identical app/mailers/application_mailer.rb
identical app/models/application_record.rb
identical app/views/layouts/application.html.erb
identical app/views/layouts/mailer.html.erb
identical app/views/layouts/mailer.text.erb
identical app/assets/images/.keep
exist app/assets/javascripts/channels
identical app/assets/javascripts/channels/.keep
identical app/controllers/concerns/.keep
identical app/models/concerns/.keep
exist bin
identical bin/bundle
identical bin/rails
identical bin/rake
identical bin/setup
identical bin/update
identical bin/yarn
exist config
identical config/routes.rb
identical config/application.rb
identical config/environment.rb
identical config/cable.yml
identical config/puma.rb
identical config/spring.rb
identical config/storage.yml
exist config/environments
identical config/environments/development.rb
identical config/environments/production.rb
identical config/environments/test.rb
exist config/initializers
identical config/initializers/application_controller_renderer.rb
identical config/initializers/assets.rb
identical config/initializers/backtrace_silencers.rb
identical config/initializers/content_security_policy.rb
identical config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
identical config/initializers/filter_parameter_logging.rb
identical config/initializers/inflections.rb
identical config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_2.rb
identical config/initializers/wrap_parameters.rb
exist config/locales
identical config/locales/en.yml
append .gitignore
identical config/boot.rb
identical config/database.yml
exist db
identical db/seeds.rb
exist lib
exist lib/tasks
identical lib/tasks/.keep
exist lib/assets
identical lib/assets/.keep
exist log
identical log/.keep
exist public
identical public/404.html
identical public/422.html
identical public/500.html
identical public/apple-touch-icon-precomposed.png
identical public/apple-touch-icon.png
identical public/favicon.ico
identical public/robots.txt
exist tmp
identical tmp/.keep
exist tmp/cache
exist tmp/cache/assets
exist vendor
identical vendor/.keep
exist test/fixtures
identical test/fixtures/.keep
exist test/fixtures/files
identical test/fixtures/files/.keep
exist test/controllers
identical test/controllers/.keep
exist test/mailers
identical test/mailers/.keep
exist test/models
identical test/models/.keep
exist test/helpers
identical test/helpers/.keep
exist test/integration
identical test/integration/.keep
identical test/test_helper.rb
exist test/system
identical test/system/.keep
identical test/application_system_test_case.rb
exist storage
identical storage/.keep
exist tmp/storage
identical tmp/storage/.keep
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_2.rb
run 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...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (= 4.2.1)
In Gemfile:
rails (~> 5.2.1) was resolved to 5.2.1, which depends on
activesupport (= 5.2.1)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
railties (< 6, >= 4.0.0) was resolved to 4.2.1, which depends on
activesupport (= 4.2.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
run bundle exec spring binstub --all
Could not find gem 'puma (~> 3.11)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
```使っているpcはmacbookです
  • Ruby on Rails

    9026 questions

    Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

思考するエンジニアのためのQ&Aサイト「teratail」について詳しく知る