Photo Gallery is the second of three complete Rails applications in this book, each designed to demonstrate different real-world techniques for building Ajax applications in Rails, from start to finish.
The application is a simple photo gallery and is a simple way to organize and browse collections of images, as shown in Figure B-1. Ajax is used to make the uploading process smooth and to display full-size images inline with the thumbnails view.
To download the source to this application, rails gallery, visit http://www.oreilly.com/catalog/9780596527440. Where files aren’t listed they are the same as the Rails default skeleton. Once the files are in the correct place, you’ll need to configure a database by editing config/database.yml. The default configuration as generated by rails gallery expects a MySQL database named
gallery_development, accessible at
localhost with the username
root and no password. To get started, create a database for the application and change database.yml as needed, then run
db:schema:load to create the application’s database structure, ...