我刚尝试为我的css网格系统制作一个ruby gem。但是,当我向rails g --help
显示时,我正处于这样的地步:
Running via Spring preloader in process 62748
Usage: rails generate GENERATOR [args] [options]
General options:
-h, [--help] # Print generator's options and usage
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-q, [--quiet] # Suppress status output
Please choose a generator below.
Expected boolean default value for '--markerb'; got :erb (string)
Expected string default value for '--helper'; got true (boolean)
Expected string default value for '--assets'; got true (boolean)
Rails:
assets
channel
controller
generator
helper
integration_test
job
mailer
migration
model
resource
responders_controller
scaffold
scaffold_controller
task
ActiveRecord:
active_record:devise
Devise:
devise
devise:controllers
devise:install
devise:views
Js:
js:assets
Mongoid:
mongoid:devise
Responders:
responders:install
TestUnit:
test_unit:generator
test_unit:plugin
TkdGrid:
tkd_grid:install
当我尝试运行rails g tkd_grid:install时收到此消息:
Running via Spring preloader in process 62839
Expected boolean default value for '--markerb'; got :erb (string)
Expected string default value for '--helper'; got true (boolean)
Expected string default value for '--assets'; got true (boolean)
Could not find generator 'tkd_grid:install'. Maybe you meant 'tkd_grid:install', 'devise:install' or 'responders:install'
Run `rails generate --help` for more options.
我正在尝试在rails项目的应用程序scss或应用程序css文件中注入一个require。它显示为rails生成器,但在我尝试安装时不起作用。
有谁知道如何解决这个问题?