Assignment 4: First Rails Steps
In this exercise, you will create a rails application for the first one or two features / user stories of your application. Pick one simple thing that you can solve mainly with the provided CRUD (Create Read Update Delete) features of a rails scaffold using just one or two model classes. If the first things seems to simple for that, add a second – but the goal is really to implement just a little bit of functionality in this first step and mainly set up the whole rails app together with Continuous Integration – we will add Continuous Deployment in the next exercise.
As we are going to use minitest for testing, it’s probably easier to go ahead and upgrade rails to 4.0.0.rc1 before starting.
- Create a rails application
- Share the rails app on github
- Create your model classes using rails generate scaffold (see https://github.com/info3/rails_01_fragen for an example)
- create many small commits:
- Develop your story test driven. See the example in https://github.com/info3/rails_testing_example for integration test examples (and setup!)
- Continuous Integration: copy the .travis.yml travis setup (you might want to delete one of the ruby versions from it) to your repository and set up a travis-ci.org build for it.
Submit a short PDF summary containing:
- the story/feature you’ve implemented
- the model you used (that is, the one or two model classes in a class diagram)
- a link to your github repository with a link to the travis build in its readme.