Fix how Rails 4.1 handles showing previews.