manish
1
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
manish
2
try this format…note no = sign
<% form_tag do %>
…
<% end %>
On Mar 17, 12:00 am, Manish N. <rails-mailing-l…@andreas-
manish
3
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%>
manish
4
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]
manish
5
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…
manish
6
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. <
manish
7
What dhaval has posted is 100% rite.
if u r using rail 2.0
otherwise u will face syntax error.