11175
(-- --)
March 17, 2008, 7:00am
1
hi i m new to ROR
when i m using............
<%= form_tag 'signup_submit' %>
<%= render :partial => "signup_form" %>
<p><input type="submit" value="Signup →" 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
Doug3
(Doug)
March 17, 2008, 7:58am
2
try this format....note no = sign
<% form_tag do %>
...
<% end %>
11175
(-- --)
March 17, 2008, 8:42am
3
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 →" 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%>
dhaval
(dhaval)
March 17, 2008, 8:50am
4
Hey in rails 2.0 form_tag syntax has been changed....it goes like this
<% form_tag :action => "foo" do %>
11175
(-- --)
March 17, 2008, 9:34am
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 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.
11175
(-- --)
March 17, 2008, 9:47am
7
What dhaval has posted is 100% rite.
if u r using rail 2.0
otherwise u will face syntax error.