开发者

generate controller empty app view folder

开发者 https://www.devze.com 2023-02-28 13:20 出处:网络
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

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

精彩评论

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