Archive for December, 2007

Rails 2.0.1 Todo List tutorial

I’ve been meaning to try Rails 2.0.1, and I had some trouble finding an example. I did find this one, which is quite good.

I thought I would add one of my own. Here in five lines are the steps to create a basic todo list application in rails.

rails todo
cd todo
rake db:create:all
script/generate scaffold Todo title:string body:text done:boolean due:datetime
rake db:migrate

Then start the web server
script/server

Open your browser to http://localhost:3000/todos

You can now create, edit and Delete items. Wow. Not one SQL command.

This tutorial assumes the following:
ralis 2.0.1 installed
running mysql with no password for root at localhost.
(And it was also made on a Macbook OS X Leopard).

Comments (4)

iPhone / iPod Touch support

Over the weekend I purchased an iPod touch, so of course the first thing I did was make cl1p compatible with my new device.Now you can copy and paste to your iPhone. From a computer just enter in any URL that starts with cl1p.net and the paste.From your iphone enter in the same URL to see the information you pasted.

Comments

Next entries »