clamstew / user_app

Michael Hartl's full app that is found in my /sample_app repo, but it has been rolled back until right after I implemented all the user requirements.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

user_app (from sample_app)

Great for rapid prototyping: fork this repo for simple way to have users all set up and get going on other models in rails.

This is a clone of my /sample_app that I wanted to put up, so you can quickly grab all the user requirements and start developing new models on top of it. This is the commit it was rolled back to: commit at the end of Chapter 9 exercises.

This is a modified version of the sample application for Ruby on Rails Tutorial: Learn Rails by Example by Michael Hartl.

This is where in the Rails Tutorial book you are at the point of this repo: Beginning of Chapter 10.

This instance put together by Clay Stewart. Enjoy!


In order to get this running you need to go into the config/database.yml file and change the username to your computer (i.e. if you open up your finder and go to your home folder, it should be the username at the top of the window next to the house icon on a mac) user name. Then go into PostgreSQL by starting up the local Postgres application, and go to the elephant in your menubar, open "psql", and type CREATE DATABASE user_app_development; and CREATE DATABASE user_app_testing;. (Here is some quick info on the PostgreSQL basics.)

Then you have to run $ bundle install, $ bundle exec rake db:migrate in terminal to get it going. Then you can run $ rails s and have the building blocks of a user based application.

I was using rspec for testing like Hartl. This was put together with the Rails 3.9.2 version of the book.

NOTE: You probably want to go to the .gitignore file and add the config/database.yml. This will prevent your local database and username from being on your github repo.

About

Michael Hartl's full app that is found in my /sample_app repo, but it has been rolled back until right after I implemented all the user requirements.


Languages

Language:Ruby 95.1%Language:CSS 2.2%Language:CoffeeScript 1.4%Language:JavaScript 1.3%