开发者

generate controller empty app view folder

This is just occurring with me or this new rails when i generate a new controll开发者_Python百科er the view folder still empty.


Try adding a method to the generate command

Rails generate controller yourcontroller index

I found this will make the controller and the view


Views aren't created until you generate them through one of the rails generate commands, or manually by adding in files.

http://guides.rubyonrails.org/getting_started.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜