Fix rake preview task.

Rake preview task failed for me because of the latest changes. It was trying to call the generate_docs method instead of the generate_docs-task.