Ruby on Rails アプリケーションのコードの一部:
#routes.rb
namespace :admin do
root :to => 'admin#index'
resources :orders, :products
end
#controllers/admin/admin_contrller.rb
class Admin::AdminController < ApplicationController
def index
end
end
indexビューは にありますviews/admin/index.html.haml。ただし、見つかりません ( http://localhost:3000/admin、テンプレートがありません)。にある場合にのみ検出されviews/admin/admin/index.html.hamlます。
私は何を間違えましたか?でビューを見つけるにはどうすればよいviews/admin/index.html.hamlですか?