Forum: Ruby on Rails how to inser value of datetime_select value in database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
parikshit (Guest)
on 2006-04-18 16:12
(Received via mailing list)
hi all
how to insert datetime_select value in database.
i have two fields in my form.rhtml


can any body tell how i can get this value.
i used in controller
def insert
   @order=Order.new(params[:stock])
   if @order.save
      render_text "record inserted"
   end
end
but it only enter stock name not date time value
This topic is locked and can not be replied to.