내 this 보석을 사용하여 내 앱에서 캘린더를 설정합니다. 그것은 Date.parse("2012-06")
가 오류의 원인이되는레일이 잘못된 날짜 오류
Started GET "https://stackoverflow.com/users/7?month=2012-06" for 127.0.0.1 at 2012-05-29 21:30:04 -0700
Processing by UsersController#show as HTML
Parameters: {"month"=>"2012-06", "id"=>"7"}
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "7"]]
Completed 500 Internal Server Error in 33ms
ArgumentError (invalid date):
app/controllers/users_controller.rb:13:in `show'
감사합니다. – js111