16. class Book < ActiveRecord::Base
validates_presence_of :title
has_many :orders
belongs_to :author, :class_name => quot;Userquot;
end
17. class StoreController < ApplicationController
def show
@book = Book.find_by_permalink(params[:id])
end
end
http://mysite.com/store/drnic-book-on-rails