todolist example doesn't work, Ramaze 2009-07

4 views
Skip to first unread message

go94022

unread,
Nov 15, 2009, 2:26:00 AM11/15/09
to Ramaze
Running the todolist example on Windows with Ruby 1.9.1-p243.
Doesn't work, get a nothing mapped yet exception.

However, things work if one line is removed from controller/init.rb:

module TodoList
class Controller < Ramaze::Controller
layout :default
engine :Etanni
helper :form
# trait :app => :todolist
end
end

require 'controller/task'

I have not found many samples that work with 2009-07 and 1.9.
Ramaze 2009-07 has been out, well, since July (obviously), and it's a
little disappointing that basic examples don't work months later.

Layout, engine, helper -- it's pretty clear what's going on but it
seems unnecessary complication to include the trait configuration in a
"tutorial" with no explanation.

I also tried to look up what the trait: does, but did not see it in
the docs. Obviously I'm new to all this so may have missed something.

Scott LaBounty

unread,
Nov 16, 2009, 11:00:26 AM11/16/09
to ram...@googlegroups.com
I haven't actually looked at the example listed below, but you can check out the tutorial here: http://ramaze.net/todolist.html which goes through the (similar?) example (and doesn't use "trait". For other examples that work with ruby 1.9 and 2009-07 (and later), you can check out my blog, http://steamcode.blogspot.com/, where I try to document Ramaze and Sequel based on what I've learned about them so far.

Scott
--
Scott
http://steamcode.blogspot.com/
Reply all
Reply to author
Forward
0 new messages