2016-08-01 7 views
1

ist hier das Gemfile nach eigenständiger rails5 api Anwendung erstellen:rake doc: app funktioniert nicht in Rails 5 API

source 'https://rubygems.org' 


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '~> 5.0.0' 
# Use mysql as the database for Active Record 
gem 'mysql2', '>= 0.3.18', '< 0.5' 
# Use Puma as the app server 
gem 'puma', '~> 3.0' 
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 
# gem 'jbuilder', '~> 2.5' 
# Use Redis adapter to run Action Cable in production 
# gem 'redis', '~> 3.0' 
# Use ActiveModel has_secure_password 
# gem 'bcrypt', '~> 3.1.7' 

# Use Capistrano for deployment 
# gem 'capistrano-rails', group: :development 

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible 
# gem 'rack-cors' 

group :development, :test do 
    # Call 'byebug' anywhere in the code to stop execution and get a debugger console 
    gem 'byebug', platform: :mri 
end 

group :development do 
    gem 'listen', '~> 3.0.5' 
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 
    gem 'spring' 
    gem 'spring-watcher-listen', '~> 2.0.0' 
end 

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 

Den Befehl verwendet:

rake doc:app 

Jede Hilfe geschätzt wird.

Antwort

0

Unterstützung für rake doc:app und rails doc:app wurde in Rails vollständig entfernt worden 5.

Bitte Abschnitt 3.1 Umzug in den Rails 5 release notes sehen.

Sie können auch die Begründung für diese Entfernung here.

+0

Rails Doc: App funktioniert nicht auch. –

+0

Das stimmt. Rails empfiehlt Benutzern, ihre eigenen Skripte zu schreiben, um 'doc: app' zu ersetzen. – Vadim