# Form\_tag changes for 2.0?

**URL:** <https://www.ruby-forum.com/t/form-tag-changes-for-2-0/173199>\
**Category:** Rails\
**Created:** [August 4, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/form-tag-changes-for-2-0/173199 "2009-08-04T20:39:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agilehack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Post date:** [August 4, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/form-tag-changes-for-2-0/173199/1 "2009-08-04T20:39:03Z")

</div>

can someone help me…I understand that with 2.0 start\_ and end\_  
form\_tag has been deprecated? Below is my code and I can’t seem to  
rewrite such that it will work correctly with 2.0…

\<%= form\_tag :action =\> “save” , :id =\> @page %\>  
\<%= text\_area ‘page’, ‘content’ %\>  
\<%= submit\_tag %\>  
\<%= end\_form\_tag %\>

thanks for the help, still noobish

---

<div class="post-metadata">

**Author:** ![agilehack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Post date:** [August 4, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/form-tag-changes-for-2-0/173199/2 "2009-08-04T21:10:05Z")

</div>

On Aug 4, 7:38 pm, agilehack [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> can someone help me…I understand that with 2.0 start\_ and end\_  
> form\_tag has been deprecated? Below is my code and I can’t seem to  
> rewrite such that it will work correctly with 2.0…

You’re now supposed to write

\<% form\_tag … do %\>  
…  
\<% end %\>

Fred
