-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