It's possible. At that point you may just want to put it in a class
variable on the controller and make it accessible a la:

class ApplicationController < AC::Base
 cattr_accessor :blah
end

ApplicationController.blah = "stuff"



On 2/27/07, Nathan Colgate Clark <[EMAIL PROTECTED]> wrote:
Thanks, Kevin.  I'm assuming the best place for these then is in the
application controller.

Kevin Clark wrote:
> $blah is a global variable.
>
> $blah = "something"
>
> On 2/27/07, Nathan Colgate Clark <[EMAIL PROTECTED]> wrote:
>> I'm working on making an app a little bit easier to replicate the same
>> app for different clients. Does anybody know of a good way to make
>> application-wide variables (global variables?).  Right now I'm putting
>> this in the bottom of my environments.rb file:
>>
>> ENV['BUSINESS_NAME'] = "Wilderness Enterprises"
>> ENV['BUSINESS_ADDRESS'] = "123 Main"
>> etc...
>>
>> And then using this in the views:
>>
>> <%= ENV['BUSINESS_NAME']%>
>>
>> And that doesn't "feel" right... but maybe it is.
>>
>> -Nathan
>> _______________________________________________
>> Sdruby mailing list
>> [email protected]
>> http://lists.sdruby.com/mailman/listinfo/sdruby
>>
>
>

_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby



--
Kevin Clark
http://glu.ttono.us
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to