Why does form_tag in the updated Rails 2.0.2 version not running? I would like to create a user management from the rails book "agile webdevelopment with rails", but it doesn''t work. view part: ---------- <% form_tag %> <%= end_form_tag %> error: ------ undefined local variable or method `end_form_tag'' for #<ActionView::Base:0x363ef7c> Can anyone help me? thanks for the reply... -- 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 -~----------~----~----~----~------~----~------~--~---
If I''m not mistaken end_form_tag was depreciated. You now need to do: <% form_tag :action => ''whatever'' do %> ... <% end %> On Jan 11, 7:44 pm, "K. R." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Why does form_tag in the updated Rails 2.0.2 version not running? > I would like to create a user management from the rails book "agile > webdevelopment with rails", but it doesn''t work. > > view part: > ---------- > <% form_tag %> > > <%= end_form_tag %> > > error: > ------ > undefined local variable or method `end_form_tag'' for > #<ActionView::Base:0x363ef7c> > > Can anyone help me? thanks for the reply... > -- > 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 -~----------~----~----~----~------~----~------~--~---
And on which site can I look for the depreciated helpers or methods? jeremy.bise-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> If I''m not mistaken end_form_tag was depreciated. You now need to do:-- 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 -~----------~----~----~----~------~----~------~--~---
I usually just Google the thing I''m having trouble with...I''m new to Rails as well. In this case the first search result for "end_form_tag" gave me the answer. On Jan 11, 7:54 pm, "K. R." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> And on which site can I look for the depreciated helpers or methods? > > jeremy.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > If I''m not mistaken end_form_tag was depreciated. You now need to do: > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Checking the Rails api doc (http://api.rubyonrails.org/) is a good way to check on things like that too. It doesn''t necessarily state that something''s been deprecated, but with something like ''end_form_tag'' you can find the new way to do it. Plus, its a good reference in general. Katie On Jan 11, 7:00 pm, Jeremy <jeremy.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I usually just Google the thing I''m having trouble with...I''m new to > Rails as well. In this case the first search result for > "end_form_tag" gave me the answer. > > On Jan 11, 7:54 pm, "K. R." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > And on which site can I look for the depreciated helpers or methods? > > > jeremy.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > If I''m not mistaken end_form_tag was depreciated. You now need to do: > > > -- > > 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 -~----------~----~----~----~------~----~------~--~---