The README file for ActionPack boasts the following feature: * Helpers for forms, dates, action links, and text <%= text_field "post", "title", "size" => 30 %> <%= html_date_select(Date.today) %> <%= link_to "New post", :controller => "post", :action => "new" %> <%= truncate(post.title, 25) %> But I get an error for using html_date_select, and it''s nowhere to be seen in the methods pane of the docs. BTW the scaffold generator doesn''t attempt to provide a means to enter dates :( Gavin
On 5.4.2005, at 17:13, Gavin Sinclair wrote:> The README file for ActionPack boasts the following feature: > > * Helpers for forms, dates, action links, and text > > <%= text_field "post", "title", "size" => 30 %> > <%= html_date_select(Date.today) %> > <%= link_to "New post", :controller => "post", :action => "new" %> > <%= truncate(post.title, 25) %> > > But I get an error for using html_date_select, and it''s nowhere to be > seen in the methods pane of the docs.try date_select: http://rails.rubyonrails.com/classes/ActionView/Helpers/ DateHelper.html#M000345 //jarkko> > BTW the scaffold generator doesn''t attempt to provide a means to enter > dates :( > > Gavin > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jarkko Laine http://jlaine.net http://odesign.fi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Yeah, that should just be date_select. http://rails.rubyonrails.com/classes/ActionView/Helpers/DateHelper.html#M000345 -Tomas On Apr 5, 2005 4:13 PM, Gavin Sinclair <gsinclair-81uBx+iSpXA0n/F98K4Iww@public.gmane.org> wrote:> The README file for ActionPack boasts the following feature: > > * Helpers for forms, dates, action links, and text > > <%= text_field "post", "title", "size" => 30 %> > <%= html_date_select(Date.today) %> > <%= link_to "New post", :controller => "post", :action => "new" %> > <%= truncate(post.title, 25) %> > > But I get an error for using html_date_select, and it''s nowhere to be > seen in the methods pane of the docs. > > BTW the scaffold generator doesn''t attempt to provide a means to enter > dates :( > > Gavin > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >