What is wrong with syntax haml? I used 2 spaces. Display error: /home/user/myapp/bds/app/views/polls/_voting_form.html.haml:14: syntax error, unexpected keyword_ensure, expecting end-of-input
= form_tag votes_path, method: :post, remote: true, id: 'voting_form'
= hidden_field_tag 'poll[id]', @poll.id
= render partial: 'polls/poll_item', collection: @poll.poll_items, as: :item
%p
%b Итого голосов: = @poll.votes_count
- if current_user.voted_for?(@poll)
%p Вы уже голосовали!
- else
= submit_tag 'Голосовать', class: 'btn-bg'