# Undefined method \`start\_form\_tag' for #\<ActionView::Base:0x3

**URL:** <https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456>\
**Category:** Rails\
**Created:** [May 2, 2008, 9:21am UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456 "2008-05-02T09:21:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@mani](https://www.ruby-forum.com/u/mani)\
**Post date:** [May 2, 2008, 9:21am UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456/1 "2008-05-02T09:21:59Z")

</div>

I have crated controller classified  
class ClassifiedController \< ApplicationController  
def list  
@classifieds = Classified.find(:all)  
end  
def show  
@classified = Classified.find(params[:id])  
end  
def new  
@classified=Classified.new  
end  
def create  
end  
def edit  
end  
def update  
end  
def delete  
end

end  
and created classified/new.rhtml

---

<div class="post-metadata">

**Author:** ![mani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@mani](https://www.ruby-forum.com/u/mani)\
**Post date:** [May 2, 2008, 11:04am UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456/2 "2008-05-02T11:04:58Z")

</div>

start\_form\_tag has been deprecated and subsequently removed. use  
form\_tag instead:

\<% form\_tag :action =\> :foo, … do %\>  
form elements here  
\<% end\>

---

<div class="post-metadata">

**Author:** ![mani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@mani](https://www.ruby-forum.com/u/mani)\
**Post date:** [February 19, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/undefined-method-start-form-tag-for-actionview-0x3/136456/3 "2010-02-19T20:03:18Z")

</div>

While doing a tutorial on tutorialpoint, I had the same problem! I made  
the change, but I get another error :

NoMethodError in Book#new

Showing app/views/book/new.rhtml where line #4 raised:

undefined method `title’ for #\<Book id: nil, created\_at: nil,  
updated\_at: nil\>  
Extracted source (around line #4):

1:

# Add new book
  
2: \<%= form\_tag :action =\> ‘create’ %\>  
3: 

Title:  
4: \<%= text\_field ‘book’, ‘title’ %\>

  
5: 

Price:  
6: \<%= text\_field ‘book’, ‘price’ %\>

  
7: 

Subject:

here is the new.rhtml file:

# Add new book
\<%= form\_tag :action =\> 'create' %\>

Title: \<%= text\_field 'book', 'title' %\>

Price: \<%= text\_field 'book', 'price' %\>

Subject: \<%= collection\_select(:book,:subject\_id,@subjects,:id,:name) %\>

Description  
\<%= text\_area 'book', 'description' %\>

\<%= submit\_tag "Create" %\> \<%= end\_form\_tag %\> \<%= link\_to 'Back', {:action =\> 'list'} %\>

thanx indeed for your help!

Tantor

Frederick C. wrote:

> start\_form\_tag has been deprecated and subsequently removed. use  
> form\_tag instead:
> 
> \<% form\_tag :action =\> :foo, … do %\>  
> form elements here  
> \<% end\>
