Fixed error with post update
Configured has_many, belong_to relationship for eggs and posts.