Potential Rails patch
layout :determine_layout
protected
def determine_layout
if %w(new create).include?(action_name)
'narrow'
else
'internal'
end
end
layout should take :if, :only options to control which controller actions.layout :determine_layout
protected
def determine_layout
if %w(new create).include?(action_name)
'narrow'
else
'internal'
end
end
layout should take :if, :only options to control which controller actions.