Hi, all Now I am doing "Hotel" website where users can select room and arrival and leave dates, and I can put into shopping cart. So I want to create a search form where users can select dates such like: <p><label for="room_checkin_date">Checkin date</label><br/> <%= date_select ''checkin_date'', params[:checkin_date] %></p> But it doesn''t wok... Could you tell me how to do it? Thank you!!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Lucy wrote:> Hi, all > > Now I am doing "Hotel" website where users can select room and arrival > and leave dates, > and I can put into shopping cart. > So I want to create a search form where users can select dates > such like: > > <p><label for="room_checkin_date">Checkin date</label><br/> > <%= date_select ''checkin_date'', params[:checkin_date] %></p> > > But it doesn''t wok... > Could you tell me how to do it? > Thank you!!! > >The first parameter to date_select should be the ''object'' or variable according to the framework documentation. The second is the attribute or member (probably checkin_date in this case). Norm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---