It searches for it in app/views/pages/index , but you have it in app/views/home/pages/index . This small difference makes it so that the Rails convention is lost.
If you must keep your new directory hierarchy, do this on your controller:
class PagesController < ApplicationController def index render :partial => "home/pages/index" end end
But by default, if you have a resource, for example :pages , it will automatically look in app/views/pages .
source share