I\'m making \"user settings form\", and stuck with HAML:
= form_tag(\'/\') - [1,2,3].each do |i| = check_box_tag \"accept#{i}\" = submit_tag
You should be passing a block to form_tag. I think you want:
Rails 2.x:
- form_tag('/') do - [1, 2, 3].each do |i| = check_box_tag "accept#{i}" = submit_tag
Rails 3+:
= form_tag('/') do - [1, 2, 3].each do |i| = check_box_tag "accept#{i}" = submit_tag