Rails 3.2リリースノートページ(http://guides.rubyonrails.org/3_2_release_notes.html)には、次のように書かれています。
Deprecated implied layout lookup in controllers whose parent had a explicit layout set
しかし、私はRails3.2.6アプリで次のことを試しました。
class ApplicationController < ActionController::Base
protect_from_forgery
layout "application_main"
end
class HomeController < ApplicationController
def index
@slideshow_pics = Event.get_intro_slide_photos
end
end
レイアウトapplication_main.html.haml
とhome.html.haml
定義があり、home#indexページに移動するhome.html.haml
と、他のレイアウトの代わりにレイアウトがレンダリングされます。
これは非推奨に反しているように思われるので、私は疑問に思っていました。3.2.6以降のリリースの1つは、非推奨を後退させましたか?