add partial sorting

This adds sorting, but I haven't figured out how to sort on foreign
columns. I am calling this on hold for now, and will probably try using
AJAX or a gem.

http://railscasts.com/episodes/228-sortable-table-columns
BooksController:
helper_method :sort_column, :sort_direction
and add sort_column and sort_direction private methods

app/helpers/application_helper.rb
sortable method

book index view:
sortable "title"
sortable "author_id" - this is incorrect
sortable "isbn10"
sortable "isbn13"

author index view:
sortable "title"
sortable "given_name" - this is incorrect

app/assets/stylesheets/application.css
add asc and desc gifs,
some stuff I don't understand

put images in public/images/
update readme for completed spec, and tidy
remove Gemfile.orig from merge conflict
fix incorrect .gitignores
make basic pagination work

gem 'will_paginate'                      #paginate
bundle install

bookcontroller index
    @books = Book.paginate(:page => params[:page])
book model
  self.per_page = 10   #pagination
book index
  = will_paginate @books

reviewcontroller index
    @reviews = book.reviews.paginate(:page => params[:page])
review model
  #FIXME no
  self.per_page = 5   #pagination
review index
  = will_paginate @reviews
add more seeds so we can see what's going on
needs CSS!
add some crappy css for pagination
make pagination pretty

gem 'will_paginate-bootstrap'             #make pagination pretty
bundle install
indexes using will_paginate:
add ,renderer: BootstrapPagination::Rails to will_paginate args
you will need to restart the server!
remove the junk we put in app/assets/stylesheets/books
Merge pull request #105 from nbirnel/25-will-paginate-plain-gem

25 will paginate plain gem
updated mailer to actually send the mail
initial email on revie sent
 iniital email on review sent
Merge pull request #108 from Mattsface/email

Email
remove unneeded layouts
Merge branch 'master' of github.com:Rails-Summer-Project-Noah-and-Matt/Library-Application
improve seeds

add isbn and reviews to seed
change devel environment to not send emails
Merge pull request #109 from nbirnel/seed-isbn

improve seeds
make sort start to work

pull ou the fields that I have not figured out how to sort.
This does not have complete coverage.
The sort problem is: we are using an ActiveRecord sort (Book.order) -
which doesn't let us sort by foreign fields. To do this, we'll either
need a join, or to sort again *after* pulling in from ActiveRecord.
Neither solution is likely to be pretty, and I haven't figured how to
factor it out.
I think this is another reason we might wish to roll-our-own ratings -
have average rating be a Book field.
Merge branch 'sortable' of https://github.com/nbirnel/Library-Application into nbirnel-sortable

Conflicts:
	app/controllers/books_controller.rb
	spec/features/books_spec.rb
complete test coverage for basic sorting

pull out unused code
Merge branch 'nbirnel-sortable'