A rails application in less than 10 hours.
Sunday 04 November 2007 - 23:10 by sven

I was a bit bored and thought about the idea of writing an useful and production ready web application with 'ruby on rails' in less then 10 hours. When I say production ready, I mean that the code is more or less readable and there is a set of tests in place to validate functionality. In the end it took me a few hours more to make this application available online, but I still think that the ruby on rails framework provides an excellent starting point for fast and clean development.
The basic steps:
- Generation of the rails skeleton
- Installation of plugins (acts_as_authenticated,classic_pagination)
- Generation of the user model and the account controller
- Some modifications to make the email signup notification work
- Code to prevent cross site request forgeries (csrf)
- Tests for the basic functionalities
- Create two models 'requests' and 'question' (request has many questions) (answers are saved inside questions table)
- Check that the models are protected against mass assignment
- Tests for the two controllers (account and lazyrequest)
- Observer and notifier for the request model to send mails on creation of a request
- Coding...
- Testing...
- Coding...
- Nice layout
- Manual testing
- Kleinkram (german: small stuff)
- Upload to beastiebytes.com
Todo list:
- more information for the user
- displayed information needs to be more visible
- more and nicer widgets to create questions
- already filled in question set or templates
- gettext
- better gui to create requests
Roadmap:
- transform into survey tool
The result is available here: http://lazykid.beastiebytes.com
ruby ruby on rails test driven development lazykid
