rewrite as a video social sharing app in Rails 4