HAML格式很奇怪
|
-form_tag(search_path, :method => :get)
= label_tag(\"Place\")
= text_field_tag(\"place\", nil, :id => \"place\")
= text_field_tag(\"near\", nil, :id => \"near\")
= submit_tag(\"Search\", :id => \"search\", :name => \"search\", :class => \"form_submit\", :disabled => false, :disable_with => \"Please wait...\")
我上面的代码,它返回以下错误:
/app/app/views/venues/main.haml:7: syntax error, unexpected kENSURE, expecting $end
我的应用程序模板如下:
%html
%head
%title
WhosHere
= stylesheet_link_tag :all
= javascript_include_tag \'http://code.jquery.com/jquery-1.5.2.min.js\'
= csrf_meta_tag
%body
= yield
没有找到相关结果
已邀请:
1 个回复
校勒魏寡