Assignment 05: Functionality and Libraries
In this assignment, you will add some functionality to your rails app and try out a couple of the principles and practices we covered in the lectures. For this, you need to add some functionality that you can choose yourself. Read through the whole assignment and decide on the functionality you want to add before starting to implement it. It does not have to be the most important functionality of your app – the goal here is to try out the different aspects of rails.
- add (at least) 2 associations to your application and cover them in the view as we discussed in class.
- add a little functionality (as the first example with the +1 button) that has to be implemented within the model, called from an appropriate controller action and shown in the view. (if you can’t think of something, sorting the table in an index by a column or implementing a simple search tends to be useful in many applications).
- find some functionality that you can implement using a gem (ruby library). Choose an appropriate gem, write some tests to try out it’s interface and have tests against the library as recommended by Rob Martin, and integrate it into your application.
- Choose a single site of your application and add Internationalization for it. Make sure to use the translation in the test cases as well.
- (optional) deploy your app to heroku.