Hi Fred,

I am really sorry for replying late..

In the parameters wrt the development.log for books doesn't consider
publishing_date to be as part of books.

Have a look at this:

Processing BooksController#create (for 127.0.0.1 at 2011-02-07 13:39:33)
[POST]
  Session ID:
BAh7BzoMY3NyZl9pZCIlZWI5YTUwYzBjY2E1NDdhNGI3OTc2M2YyNWFkZDkw%0AMGIiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh%0Ac2h7AAY6CkB1c2VkewA%3D--0abacbbecbc5fbb17e945b639dcbbe7f7520532a
  Parameters: {"commit"=>"Create",
"authenticity_token"=>"8265666eb9501a997981c9c35c6ebc296b0d21b7",
"action"=>"create", "publishing_date"=>"February 12, 2011",
"controller"=>"books", "book"=>{"title"=>"abcd8", "author"=>"defg8"}}
  Book Columns (0.001384)   SHOW FIELDS FROM `books`
  SQL (0.000088)   BEGIN
  Book Create (0.000392)   INSERT INTO `books` (`created_at`, `author`,
`title`, `updated_at`, `publishing_date`) VALUES('2011-02-07 13:39:33',
'defg8', 'abcd8', '2011-02-07 13:39:33', NULL)
  SQL (0.001896)   COMMIT
Redirected to http://localhost:3000/books/1054583410
Completed in 0.01805 (55 reqs/sec) | DB: 0.00376 (20%) | 302 Found
[http://localhost/books]

I had a question, is it because that the calendar_date_select plugin 
takes the date in the format "Month dd, year" and not as of the standard 
attributes like created_at which take "year-month-date", there is a null 
being inserted for publishing_date while creating a new books record?

Thanks

Mohnish

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
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