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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
try this format....note no = sign <% form_tag do %> ... <% end %> On Mar 17, 12:00 am, Manish Nautiyal <rails-mailing-l...@andreas- s.net> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 formYou have to use <%= end_form_tag%> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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%> > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Thx dhaval........... its working very fine......... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Nautiyal < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What dhaval has posted is 100% rite. if u r using rail 2.0 otherwise u will face syntax error. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---