码迷,mamicode.com
首页 > 其他好文 > 详细

class_options

时间:2018-10-26 14:32:27      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:styles   OLE   scope   rails   通过   IP设置   type   test   命令   

一、class_option :stylesheet, :type => :boolean, :default => "true", :description => "test class_options"

 通过skip设置stylesheet为false

rails g my docker --skip-stylesheet

 

 

二、class_option :scope, :type => :string, :default => "zn", :description => "test class_options"

通过在命令行中设置scope值

rails g my docker --scope test

 

class_options

标签:styles   OLE   scope   rails   通过   IP设置   type   test   命令   

原文地址:https://www.cnblogs.com/znsongshu/p/9855818.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!