ordered stories by priority and descending created_at. To be solved later is sorting by priority is alpha, not what we want.
Took first steps toward removing hard-coded text for enumeratable values (priority and status) from the story model by created two new db tables, populating them in the migrations, replicating text information as _id indexes into these tables, and changing the priority code (in MVC) to use the index. Some testing. Next step is to deploy to someone elses local machine and then continue by fixing status as we did priority.
fix bug in implementation of having separate table for priority names where edit multiple did not change priority.  fixed bug where when selecting stories with a tag, the stories were not appearing in priority order from high to low.  version 7.12
made minor change in sass file to produce fresh css
1) We editted the stories.rb, stories_controller and view files to use new status table.
2) Hard coding status names in view files.
Use variables instead oif hardcoded status names
Merge pull request #19 from wdesmonde/master

latest commit with priority ready for production
Merge pull request #20 from SteveRobertsonSunnyvale/enum-status

Enum status
More work to pull priorities from the database rather than hardcoded. Removed scss and css files added by scaffolding to restore our look and feel.
worked alongside Vern
Merge branch 'enum-status' of github.com:vemcg/Portfolio-Project-1-User-Stories into enum-status
changed version number; schema.rb changed because ran rake db:migrate
restored scaffold.sass file so we have our nice sans-serifed fonts back, now using Priority.priority_order field to order the the stories on the index pages, we refactored the list partial and the index page so that we don’t have to iterate through the stories in order to filter them by status on the index page.  However, we are not done with this branch because we have more refactoring to do:  edit_multiple is now broken and click on a tag is also broken because we have to fix the index and edit_multiple methods in the stories controller to account for our refactoring of the list partial and the index pages.
fixed the stories controller methods so database queries work.  However, there is now a lot of repetition in the code in the index, edit_multiple, and update_multiple methods.  Also, fixed the view for edit_multiple so it uses the list partial.
Work in progress on shifting query complexity from repetitious code in the story
controller to named scopes in the story model.

What works well is all the commonalities in ordering and the ijoining of status
and priority information now encapsulated in scope :properly_ordered.

What does not work well is the inclusion of parameters needed to select tagged
or selected stories.

We need to figure out how to pass parameters into scopes without losing the power of ActiveRecord::Relations
Merge branch 'enum-status' of github.com:vemcg/Portfolio-Project-1-User-Stories into enum-status

Conflicts:
	app/controllers/stories_controller.rb
	app/views/stories/edit_multiple.html.haml
Version 7.14d - Requires bundle install

Added Bullet Gem
Fixed N+1 Query problem by adding an includes(:tags) to properly_ordered scope
Did not manage to create named scopes for multi-select and tagged_with

Unclear that we are getting ActionRecord::Relation objects in Rails Console
But stable and better so committing.
playing around on branch
catching up with Vern's enum-status
Added using Rspec and friends. Run bundle install.
We removed the test directory because we want to use RSpec
instead of  the default framework which comes
when generating a scaffold (TUnit)
We were using Capybara to simulate the web browser but it is having trouble
finding elements on the page.  TODO:  maybe use webrat instead?
In order to run tests, from root of the project,
type the command "bundle exec rspec spec/"
add the name of the file to run only test in a file
Add -e "<name of test or suite>" to run a subset of tests
in the specified file
(We have not installed autotest or spork to run tests automagically)