Jan 24 2008
ruby ToDo list
I have created a small Ruby on Rails application to keep track of my personal “ToDo” list of tasks. The idea is to split your different tasks into categories (i.e. important & urgent, no important & urgent, etc.) and have a web front end in which you can get a nice view of your pending tasks.
The code is under 1 MB and it works cool with sqlite3. To run the application, go to the folder you uncompressed the file and issue the following command:-
$ ./script/server
Open a browser and access: http://localhost:3000/.
The database provided contains some default categories and tasks. To remove them just go to the application directory and execute the following:
$ ./script/console >> Task.find(:all).each do |task| task.destroy end >> Category.find(:all).each do |category| category.destroy end
This will clear the database (note that you can also accomplish the same using the rake db:migrate command, however, that is another story
). Then you need to add your own categories. Beware that the CSS file is prepared for up to 4 categories. Support for more could be easily added and is left as an exercise :D. to add you own categories:
Category.add
Please note, that no special security measures have been implemented (SQL injection or XSS prevention). The tool is recommended to be used only in safe environments. ![]()




