Update books_controller.rb

edited create to send back a json