Okie got it.
WARNING: Can't mass-assign these protected attributes: ida2a2
Post Create (0.0ms) INSERT INTO "posts" ("updated_at", "title", "body",
"id", "created_at") VALUES('2008-12-24 10:33:56', 'First Post', 'jsust a
test i', NULL, '2008-12-24 10:33:56')
Thanks for the lead. But how to assign values in this case.
I guess i need to write a method in post.rb for before_save hook.
Any other suggestion?
Sudhakar.M
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---