# Undefined method \`start\_form\_tag'

**URL:** <https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022>\
**Category:** Rails\
**Created:** [March 27, 2011, 4:17pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022 "2011-03-27T16:17:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 27, 2011, 4:17pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022/1 "2011-03-27T16:17:07Z")

</div>

I tried to generate the form using  
\<%= start\_form\_tag :action =\> ‘create’ %\> in  
app/view/book/new.rhtml  
and when i browse to localhost:3000/book/new i got  
the  
following error

undefined method `start\_form\_tag’ for #ActionView::Base:0xb67231f0

Please help me to solve this

Thanks

---

<div class="post-metadata">

**Author:** ![amritpal\_pathak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@amritpal\_pathak](https://www.ruby-forum.com/u/amritpal_pathak)\
**Post date:** [March 27, 2011, 5:17pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022/2 "2011-03-27T17:17:12Z")

</div>

Sent from my iPhone

On Mar 27, 2011, at 9:15 AM, amritpal pathak [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I tried to generate the form using  
> \<%= start\_form\_tag :action =\> ‘create’ %\> in  
> app/view/book/new.rhtml  
> and when i browse to localhost:3000/book/new i got the  
> following error
> 
> undefined method `start\_form\_tag’ for #ActionView::Base:0xb67231f0

Start\_form\_tag and end\_form\_tag were deprecated in Rails 2.0. Use Rails  
3 documentation to see the proper use of form\_tag.

B.

---

<div class="post-metadata">

**Author:** ![amritpal\_pathak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@amritpal\_pathak](https://www.ruby-forum.com/u/amritpal_pathak)\
**Post date:** [March 27, 2011, 5:41pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022/3 "2011-03-27T17:41:36Z")

</div>

On 27 March 2011 16:15, Bryan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Start\_form\_tag and end\_form\_tag were deprecated in Rails 2.0. Use Rails 3  
> documentation to see the proper use of form\_tag.

In addition if you are using an ancient tutorial then stop and find an  
up to date one that uses Rails 3. The free online one at  
[railstutorial.org](http://railstutorial.org) is not bad.

Colin

---

<div class="post-metadata">

**Author:** ![amritpal\_pathak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@amritpal\_pathak](https://www.ruby-forum.com/u/amritpal_pathak)\
**Post date:** [March 28, 2011, 3:00pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022/4 "2011-03-28T15:00:48Z")

</div>

On 28 March 2011 13:02, amritpal p. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Colin L. Thanks for reply.I am using rails version 2.3.8.Is this reason  
> for getting the error?

As Bryan said those were deprecated and presumably are now no longer  
there, so yes I expect so.

> The link which you suggessted for tutorials provide stuff paid!Is there  
> any good free tutorials for RoR?

It is free to use online (rather than downloading complete tutorial).  
Click in the first paragraph of [railstutorial.org](http://railstutorial.org) where it says  
‘available for free online’.

I suggest you upgrade to Rails 3 first though. There is no point  
starting with an out of date version (2.3.8) unless you need to  
maintain legacy code.

Colin

---

<div class="post-metadata">

**Author:** ![amritpal\_pathak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@amritpal\_pathak](https://www.ruby-forum.com/u/amritpal_pathak)\
**Post date:** [March 28, 2011, 2:02pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag/205022/5 "2011-03-28T14:02:29Z")

</div>

Colin L. Thanks for reply.I am using rails version 2.3.8.Is this reason  
for getting the error?  
The link which you suggessted for tutorials provide stuff paid!Is there  
any good free tutorials for RoR?

Thanks
