Next → Third Step, V, like View First Step, Create ← Prev
Ramaze comes at the moment only with a simple wrapper of the YAML::Store. So we are going to base this on the tools available, you can just do the same with your ORM or database-library of choice.
So first, create a model/todolist.rb for our application:
require 'ramaze/store/default' TodoList = Ramaze::Store::Default.new('todolist.yaml')
Let's add some items as well to have a base to start from.
{ 'Laundry' => {:done => false}, 'Wash dishes' => {:done => false}, }.each do |title, value| TodoList[title] = value end
Next → Third Step, V, like View First Step, Create ← Prev