syntax error

hi i m new to ROR

when i m using............

<%= form_tag 'signup_submit' %>
<%= render :partial => "signup_form" %>
<p><input type="submit" value="Signup &rarr;" class="button" /></p>
<%= end_form %>

i m getting error...........
undefined local variable or method `end_form' for
#<ActionView::Base:0x36f7608>

please help me.........what should i use with form

try this format....note no = sign

<% form_tag do %>
   ...
<% end %>

Manish Nautiyal wrote:

hi i m new to ROR

when i m using............

<%= form_tag 'signup_submit' %>
<%= render :partial => "signup_form" %>
<p><input type="submit" value="Signup &rarr;" class="button" /></p>
<%= end_form %>

i m getting error...........
undefined local variable or method `end_form' for
#<ActionView::Base:0x36f7608>

please help me.........what should i use with form

You have to use <%= end_form_tag%>

Hey in rails 2.0 form_tag syntax has been changed....it goes like this
<% form_tag :action => "foo" do %>

dhaval wrote:

Hey in rails 2.0 form_tag syntax has been changed....it goes like this
<% form_tag :action => "foo" do %>
----
---
<% end %>
remember end_form_tag wont work now I guess.

On Mar 17, 1:42 pm, Siva Prakasam <rails-mailing-l...@andreas-s.net>

Thx dhaval...........
its working very fine.........

Hi Manish,

U will try following end tag to end the form.

                             "<% end %>"

I think this may solve the problem.

What dhaval has posted is 100% rite.
if u r using rail 2.0
otherwise u will face syntax error.