Pinterest clone in rails 4