Fixed a bug with alternate layout #1468 [sam]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 c6ab8f57
......@@ -157,7 +157,7 @@ def render#{suffix}_scaffold(action = caller_method_name(caller))
@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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册