Hi, ror newbie here. I guess this is more of a "how do I get information" question than anything. The generator inserts f.submit statements in forms and I''m looking at the documentation for submit but can''t find it anywhere. I looked at: -ruby guides, only submit_tag is mentioned -api.rubyonrails.org, ActionView::Helpers::FormHelper, also only mentions submit_tag -the Agile Web Development with Rails book, and no mention of f.submit either. Is there anywhere else I should be looking? Thanks in advance, f -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, Mar 7, 2010 at 10:11 PM, Frank Huster <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > ror newbie here. > > I guess this is more of a "how do I get information" question than > anything. > > The generator inserts f.submit statements in forms and I''m looking at > the documentation for submit but can''t find it anywhere. > I looked at: > -ruby guides, only submit_tag is mentioned > -api.rubyonrails.org, ActionView::Helpers::FormHelper, also only > mentions submit_tag > -the Agile Web Development with Rails book, and no mention of f.submit > either. > > Is there anywhere else I should be looking? >Hi, you can look in the form_helper.rb which provides a bit more documentation. BTW, it''s a part of the ActionPack gem. Good luck, -Conrad> > Thanks in advance, > f > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 8 March 2010 06:11, Frank Huster <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > ror newbie here. > > I guess this is more of a "how do I get information" question than > anything. > > The generator inserts f.submit statements in forms and I''m looking at > the documentation for submit but can''t find it anywhere. > I looked at: > -ruby guides, only submit_tag is mentioned > -api.rubyonrails.org, ActionView::Helpers::FormHelper, also only > mentions submit_tag > -the Agile Web Development with Rails book, and no mention of f.submit > either.It is a bit odd that f.submit is not explicitly documented in more places. It is effectively the same as submit_tag I think. Google for rails form_for "f.submit" will throw up some useful hits. Colin> > Is there anywhere else I should be looking? > > Thanks in advance, > f > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > It is a bit odd that f.submit is not explicitly documented in more > places. It is effectively the same as submit_tag I think. Google for > rails form_for "f.submit" > will throw up some useful hits.What you really want to be googling for is FormBuilder as it''s the FormBuilder that has the submit method: http://apidock.com/rails/ActionView/Helpers/FormBuilder http://apidock.com/rails/ActionView/Helpers/FormBuilder/submit There''s no documentation on those pages, but one of them points you to: http://code.alexreisner.com/articles/form-builders-in-rails.html Cheers, Andy -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.