Ignore ruby gem set and version
Add a bunch of gems because gems are fun.
Upgrade some gems.
Install rspec.
Add money gem.
Remove unnecessary inclusion of Guard.
Cleanup spec helper and add factory girl syntax methods.
Guardfile
Create Trip model and database table.
Create TicketPrice model and db table.
Create tickets.
Add virtue.
Autoload forms folder.
Add TicketForm and Passenger.
- They both make use of Virtus.model which allows us to specify the types of attributes we want. It also means it can coerce params into those types which is pretty handy.
- Virtus also makes the initializers work like ActiveRecord ones, and plays nice with FactoryGirl.
- It would be better to use Declan's nested validators here instead of the passengers_are_valid method. I will have to find out how he made those work.