Hi there, I am struggling with handling the default day/month/year in the select_xxx helper methods. I currently have: <div id="date_day"><%= select_day(nil, :prefix => "product_return[exchange_date(3i)]", :discard_type => true, :include_blank => true) %></div> As is, the list will (obviously) always default to the blank selection, but I am hoping for some type of if where if the exchange_date is nil then nil is "used" (as above) and if exchange_date is not níl (there is a date in the db), then exchange_date.day is used. Any help/ideas would be very much appreciated. If I have missed something really obvious, I apologize. Thx, -Fredrik Bach fredrikbach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---