In Week 3, I was mostly designing routes and developing the submission interface for Grandham.
Grandham should have two interfaces for data submission.
- Interface for normal users
- Interface for advanced users
The first interface, the form to input basic details of a book has been implemented. All the information entered through this form directly goes to 'Submission' model with 'approved' = false. Later when the task force changes 'approved' value to true, all other submission will get disapproved and this submission details would get featured in Book page.
We are storing Author and Publisher information in different models connected to Submission using a has_many :through association and we use the rails feature accepts_nested_attributes_for to input them in the same Submission#new interface.
We now have language based navbar in which the links would change according to the language selected. This would help users to quickly navigate to Book, Authors, Publishers and Libraries. It will be an UX enhancement to show selected Language in navbar, will do that.
We have a very basic 2 column books listing now, it's mainly for development purposes and testing. We will have a proper books listing on the way.
In other news, I got Travis working with selenium integration specs. It required some additional bits of configuration like this -
before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start"