added rest of Rails app