से पॉप्युलेट नहीं यहाँ मेरी मॉडलदिनांक समय और रेल 3
include Mongoid::Document
include Mongoid::Timestamps
field :message, :type => String
field :send_at, :type => DateTime
यहाँ में कोड मेरा रूप आंशिक के लिए कोड है
<%= f.label :send_at %><br />
<%= f.datetime_select :send_at %>
लेकिन तारीख और समय आबादी वाले कभी नहीं है । मैंने यह सुनिश्चित किया कि मोंगो और मोंगोइड भी अद्यतित हैं। सुनिश्चित नहीं है कि कुछ ऐसा है जो मुझे याद आ रहा है।
[अद्यतन लॉग प्रविष्टियों]
Started POST "/notifis" for 127.0.0.1 at Mon Oct 18 05:48:05 -0400 2010
Processing by NotifisController#create as HTML
Parameters: {"commit"=>"Create Notifi",
"authenticity_token"=>"/hrlnvA2Xn5NqGgCkPFAQV254IHPJEvZoLxOYNNUwhc=", "_snowman"=>"☃",
"notifi"=>{"send_at(2i)"=>"10", "is_sent"=>"0", "send_at(3i)"=>"18",
"send_at(4i)"=>"09", "message"=>"erwer", "send_at(5i)"=>"48",
"send_at(1i)"=>"2010"}}
MONGODB noti_development['notifis'].insert([{"send_at(2i)"=>"10", "created_at"=>Mon Oct
18 09:48:05 UTC 2010, "is_sent"=>false, "updated_at"=>Mon Oct 18 09:48:05 UTC 2010,
"_id"=>BSON::ObjectID('4cbc17d5c24d7602bc00002d'), "send_at(3i)"=>"18",
"message"=>"Sample Message", "send_at(4i)"=>"09", "send_at(1i)"=>"2010",
"send_at(5i)"=>"48"}])
Redirected to http://localhost:3000/notifis
Completed 302 Found in 4ms
Started GET "/notifis" for 127.0.0.1 at Mon Oct 18 05:48:05 -0400 2010
Processing by NotifisController#index as HTML
MONGODB
noti_development['users'].find({:_id=>BSON::ObjectID('4cb9db18c24d7602bc000007')},
{}).limit(-1)
MONGODB noti_development['notifis'].find({}, {})
Rendered notifis/index.html.erb within layouts/application (42.0ms)
Completed 200 OK in 52ms (Views: 51.2ms)
कृपया कुछ लॉग पंक्तियाँ जोड़ें ताकि हम देख सकते हैं कि मूल्यों को सही ढंग से नियंत्रक को आपूर्ति की जाती है। –