Form_tag

Why does form_tag in the updated Rails 2.0.2 version not running?
I would like to create a user management from the rails book “agile
webdevelopment with rails”, but it doesn’t work.

view part:

<% form_tag %>

<%= end_form_tag %>

error:

undefined local variable or method `end_form_tag’ for
#ActionView::Base:0x363ef7c

Can anyone help me? thanks for the reply…

If I’m not mistaken end_form_tag was depreciated. You now need to do:

<% form_tag :action => ‘whatever’ do %>

<% end %>

And on which site can I look for the depreciated helpers or methods?

[email protected] wrote:

If I’m not mistaken end_form_tag was depreciated. You now need to do:

I usually just Google the thing I’m having trouble with…I’m new to
Rails as well. In this case the first search result for
“end_form_tag” gave me the answer.

Checking the Rails api doc (http://api.rubyonrails.org/) is a good way
to check on things like that too. It doesn’t necessarily state that
something’s been deprecated, but with something like ‘end_form_tag’
you can find the new way to do it. Plus, its a good reference in
general.

Katie

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs