Hey all, I’m running into an error using form_tag in Rails 2.3 and can’t seem to wrap my head around it. What may I be doing wrong syntactically?
=form_tag :action => 'form', :name => "admin_form"
#images_actions_bar
=submit_tag "Approve", :class => "button", :name => "approve"
=submit_tag "Update", :class => "button", :name => "update"
I am seeing “syntax error, unexpected kENSURE, expecting $end”
This is because you’re using the
=output when you’re using Rails 2. This is the new helper in Rails 3. You want to use-for theform_tagin Rails 2.EDIT: OP pointed out in the comments that he was missing a
doat the end of theform_tagas well.