Fixed a bug with alternate layout #1468 [sam]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-07-02 18:49:17 +00:00
parent c6ab8f5706
commit b7f37d3ef9

View File

@@ -157,7 +157,7 @@ module ActionController
@content_for_layout = @template.render_file(scaffold_path(action.sub(/#{suffix}$/, "")), false)
if active_layout?
if !active_layout.nil?
render :file => active_layout, :use_full_path => true
else
render :file => scaffold_path("layout")