Undefined method `start_form_tag'


#1

I tried to generate a form using the Rails “start_form_tag”, but got
the error message “undefined method `start_form_tag’ for
#ActionView::Base:0x47b4c70”. What could be missing here. Thanks for
help.


#2

what is the version of Rails you are using?


#3

On 4 Jan 2009, at 16:56, cutegirl wrote:

I tried to generate a form using the Rails “start_form_tag”, but got
the error message “undefined method `start_form_tag’ for
#ActionView::Base:0x47b4c70”. What could be missing here. Thanks for
help.

start_form_tag was removed from rails over a year ago. Use form_tag
instead.

Fred


#4

thanks!

On Jan 4, 12:07 pm, Frederick C. removed_email_address@domain.invalid


#5

If only “form_tag” is needed, how can one know where is the end of the
form? Rails seems to evolve so fast that a book from a year ago is
useless. Where can I get the update info of Rails? Thanks for help!

On Jan 4, 12:07 pm, Frederick C. removed_email_address@domain.invalid


#6

it’s a helper that takes a code block
<%= form_tag ‘/path’ do %>

<% end %>
check out the API (you can also download a nice version from
http://www.railsbrain.com/