Topic: Markdown to store data like in Octopress and Generate static sites?

Is it possible to build site like Octopress with rails? Blog or any other site? Which store data in Markdown files? Which can generate a static site and upload only the static content to the server?