You want def get render :index, :hello => "Hello World!" end
in your view. Unlike Rails, instance variables aren't magically carried along from Controller to View. -- Eric On Wed, Nov 12, 2008 at 12:03 PM, Gregoire LEJEUNE <[EMAIL PROTECTED]> wrote: > Hi Campers, > > i just download and install the last version from > http://github.com/why/camping/tree/master > > Then, when i test with this piece of code : > > require 'camping' > > Camping.goes :Test > > module Test::Controllers > class Index < R '/' > def get > @hello = "Hello World!" > render :index > end > end > end > > module Test::Views > def layout > html do > body do > self << yield > end > end > end > > def index > p "Camping say [EMAIL PROTECTED]" > end > end > > I just see "Camping say" not "Camping say Hello World!"... > > So what's wrong ? > _______________________________________________ > Camping-list mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/camping-list > _______________________________________________ Camping-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/camping-list

