Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-15 Thread Walter Lee Davis
On Apr 15, 2013, at 8:10 AM, Wins Lin wrote: > tamouse mailing lists wrote in post #1105626: >> On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists >> wrote: >> >> Never mind, I mis-read what you wrote. >> >> ZF I'm assuming is Zend Framework, aka, PHP? Which works nothing like >> Rails, bt

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread Ricardo Franco
Maybe hardcoding them in a before_filter on ApplicationController... Which kind of variables are you talking about? Where do you plan to use them? 2013/4/14 tamouse mailing lists > On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists > wrote: > > On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin w

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists wrote: > On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin wrote: >> How to set some variables on bootstap? I need a few variables to be >> initialized with default values every request. For example in ZF there >> is a class Bootstrap whose methods a

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin wrote: > How to set some variables on bootstap? I need a few variables to be > initialized with default values every request. For example in ZF there > is a class Bootstrap whose methods are called automatically every > request. Is there something similar

[Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread Wins Lin
How to set some variables on bootstap? I need a few variables to be initialized with default values every request. For example in ZF there is a class Bootstrap whose methods are called automatically every request. Is there something similar in Rails? -- Posted via http://www.ruby-forum.com/. --