Updated generator and gem to rails 4