- if !request.path_info.include? 'A' %{:id => 'A'} "Text" - else "Text"
"文字"写了两次.我怎么能只写一次并同时检查path_info是否包含'A'?
ruby haml
haml ×1
ruby ×1