From james.britt at gmail.com Sun Dec 2 13:02:07 2007 From: james.britt at gmail.com (James Britt) Date: Sun, 2 Dec 2007 10:02:07 -0800 (PST) Subject: [Rg 114] Changing my subscription option Message-ID: <0ceb2310-010c-4c89-a126-2f49c414eec8@s36g2000prg.googlegroups.com> For some reason, when I joined this group, I was not allowed to pick the option of having all messages sent to me. The best I could do was get the abridged mail When I select the full-mail choice, I get this: "There is a problem with your choice of subscription type" But no details. Can someone with admin rights change my membership so that I get sent new messages as they arrive? Thanks, James From lasso at lassoweb.se Wed Dec 12 14:49:56 2007 From: lasso at lassoweb.se (Lars Olsson) Date: Wed, 12 Dec 2007 20:49:56 +0100 Subject: [Rg 115] Transferring data from a controller to a template Message-ID: <47603B64.4010606@lassoweb.se> Hi list! I find it somewhat strange that only the instance variables of a controller are available to the templates that get rendered by the very same controller. This may of course be by design, but it would be nice if somebody could explain why the class variables and constants of the controller should be left out. A small example: Lets say we have the following Controller. The controller does not use any templates at all. class TestController < Ramaze::Controller FOO = 'I am the constant FOO.' def initialize @@bar = 'I am the class variable @@bar.' @baz = 'I am the instance variable @baz.' end def index # Nothing to see here, move along... end def test_const_val() FOO end def test_class_var() @@bar end def test_instance_var() @baz end end Now, if we start Ramaze, we can visit all pages without any problems. All constants, class variables and instance variables gets printed correctly. Lets add some templates: [test_class_var.xhtml]