我安裝了寶石,當我運行Rails的:是否有可能使用active_scoffold寶石在軌4.2.6
rails g active_scaffold:install
它說
通過Spring預加載過程6001
運行找不到發電機'scoffold'。也許你的意思是'腳手架','css:scaffold'或'erb:腳手架'
運行
rails generate --help
以獲得更多選擇。
的Gemfile
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'active_scaffold', github: 'activescaffold/active_scaffold', branch: 'master'
在[文檔](https://github.com/activescaffold/active_scaffold)它說,_「滑軌> = 4.0.5是支持,ruby> = 2.0支持「_所以它應該工作。你運行過'bundle install'嗎? – Vucko
當我運行命令「rails g active_scaffold用戶名:字符串」時,我運行了捆綁包,它表示已定義錯誤 – praveenkumar
您是否在'rails g active_scaffold用戶名:string'之前運行'bundle exec rake db:create'? – Vucko