Syntax error

hi i m new to ROR

when i m using…

<%= form_tag ‘signup_submit’ %>
<%= render :partial => “signup_form” %>

<%= 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 %>

On Mar 17, 12:00 am, Manish N. <rails-mailing-l…@andreas-

Manish N. wrote:

hi i m new to ROR

when i m using…

<%= form_tag ‘signup_submit’ %>
<%= render :partial => “signup_form” %>

<%= 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 %>


<% end %>
remember end_form_tag wont work now I guess.

On Mar 17, 1:42 pm, Siva P. [email protected]

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 P. [email protected]

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.

On Mon, Mar 17, 2008 at 12:30 PM, Manish N. <

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

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