pinterest clone in Rails 4