Update layout_helper.rb

Support for rails 3.0. @view_flow only exists starting with 3.1.