我已使用 this tutorial 在单个文件中传输某些控制器。
Showing /home/action/NAME/app/views/admin/posts/_form.html.erb where line #1 raised:
undefined method `admin_posts_path' for #<#<Class:...
...
<%= form_for @post do |f| %>
路线档案:
scope module: 'admin' do
resources :posts
end
posts_controller.rb
def new
@post = Admin::Post.new
end