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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to