Normally the layout from layout.erb would be used for all .erb pages in your application. This can be customized with 'render :layout=>otherlayout', which will look for otherlayout.erb in the app folder. Also 'render :layout=>nil' can be used to render a page without a layout page. See here.
Did (accidentally) use the layout parameter in the pages other than index.erb?