开发者

Changing view folder for a particular controller

开发者 https://www.devze.com 2023-01-07 13:16 出处:网络
I\'m using netbeans as my IDE, and it runs into a world of hurt when I created a controller/views called Tags, presumably because it collides with some holy SVN namespace. Renaming the view folder, sa

I'm using netbeans as my IDE, and it runs into a world of hurt when I created a controller/views called Tags, presumably because it collides with some holy SVN namespace. Renaming the view folder, say, tag_views, fixes everything, but I would have to explicitly write out my render command in each action in the controller. Is there any w开发者_运维问答ay to re-set the view folder for a particular controller in the same way that you can set the layout for the controller layout 'whatever'?


Maybe prepend_view_path?

http://railsapi.com/doc/rails-v3.0.1/classes/AbstractController/ViewPaths/ClassMethods.html#M001611

0

精彩评论

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

关注公众号