Quick and dirty(?) Rails 2.0.1 Todo List 6

Posted by Hisham Thu, 07 Feb 2008 16:39:00 GMT

So I really needed to get a todo list up and running VERY quickly with minimal hassle. Rails to the rescue! With 2.0.1, you can do the following:
rails todos
cd todo
rake db:create:all
script/generate scaffold Todo title:string body:text done:boolean due:datetime percentage:integer 
rake db:migrate

And then, if you want, add a bit of CSS like I did (screenshot!) to create that progress bar, and voila! Insta-TODO. I plan to make the CSS and any other modifications I add to this little Rails-one-liner public very soon (as an update to this post).
Comments

Leave a response

  1. Avatar
    Dennis about 17 hours later:
    Got my freshly installed bsd to try it out on :) .. first experiment with ruby :)
  2. Avatar
    Dennis (again) about 17 hours later:
    Hmm it appears the in Fbsd release ruby is as 1.8
  3. Avatar
    newbie 4 days later:
    hi hisham, i saw your screenshots, then i know you are a programmer, i'd like to know how can i learn data structures without a teacher..i'd like some basic bibliographic..i have a base with algorithms(loops,conditions,array etc).. thank you.
  4. Avatar
    hisham 4 days later:
    First of all, you need to pick a programming language. I would suggest something with pointers and memory management (C / C++). All you need to do after that is get yourself a Data Structures / Design book in C. There are quite a lot, take a look over at amazon for something you like.
  5. Avatar
    Cheap Coach Outlet over 3 years later:
    If you think you are beaten, you are. If you think you dare not, you don't. If you'd like to win but think you can't, It's almost certain you won't. Life's battles don't always go To the stronger or faster man, But sooner or later, the man who wins Is the man who thinks he can.
  6. Avatar
    Coach Factory Outlet Online over 3 years later:
    By upholding the principle of shared happiness, you can obtain much kind support, which is a starting point for success.
Comments