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
精彩评论