refactoring to run app with Rails 4 (without authentication)