简体   繁体   English

rails-我如何使用新的rails创建应用程序,同时指定用于测试的rspec和用于视图的haml

[英]rails - how do I create an application with rails new, specifing rspec for testing and haml for views at that moment

Rails 3.1 Rails 3.1

I can do: rails new myApp -d mysql to set the database ok. 我可以这样做:用rails new myApp -d mysql设置数据库即可。

Is it possible to set rspec at the same time (or is it the default in 3.1?) and haml. 是否可以同时设置rspec(或3.1中的默认值?)和haml。

I googled and looked in the guides but it was not clear. 我用谷歌搜索并查看了指南,但不清楚。

I know I can add rspec and haml gems and go from there but I was wondering if there are options to set those when doing rails new 我知道我可以添加rspec和haml gems并从那里去,但是我想知道在做rails new时是否有设置这些的选项

不,我认为这是因为Rails依赖于mysql和其他数据库,而它不支持rspec或除test / unit / minitest以外的任何测试工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM