In order to use RailsBricks, you need the following prerequisites:
RailsBricks doesn't run out of the box on Windows. If you plan to use RailsBricks on Windows, follow the Windows installation guide. You will first need to install the DevKit (thanks to David Camarena for pointing this out) as well as the tzinfo-data gem.
You install RailsBricks like any other gem. Open a terminal window and issue the following command:
gem install railsbricks
From your terminal, go to the directory where you want your new app created and type:
If this is your first time using RailsBricks, make sure you select to receive tips along the way. The wizard will hold your hand during the app creation.
A note on Ruby version support: RailsBricks generates Rails apps with support for the current major Ruby release (currently, 2.0.0) + the current point release and the previous one, for example 2.1.5 & 2.1.4. If you need to use another version of Ruby, you will have to manually edit the Gemfile after the app gets created.
Once your application is built, if you need to recreate the database, you can run
rbricks -r from within your app directory and it will drop, create, migrate and seed your database.