Re: [Rails-core] Can Rails render pages if there is no database connected?

2006-01-02 Thread Duane Johnson
On Jan 2, 2006, at 3:12 PM, Michael Koziarski wrote:Is this happening for a reason?  It seems to me that Rails should bea little more robust on its "minimum requirements" for a basiccontroller and view to work properly.  I'd like to investigatefurther, so I'm looking for a little feedback first.Dua

Re: [Rails-core] Re: [Rails] Can Rails render pages if there is no database connected?

2006-01-02 Thread Michael Koziarski
> Is this happening for a reason? It seems to me that Rails should be > a little more robust on its "minimum requirements" for a basic > controller and view to work properly. I'd like to investigate > further, so I'm looking for a little feedback first. > > Duane Johnson > (canadaduane) > http://

[Rails-core] Re: [Rails] Can Rails render pages if there is no database connected?

2006-01-02 Thread Duane Johnson
This is from the rails mailing list: On Jan 1, 2006, at 4:00 PM, Duane Johnson wrote: I thought I knew the answer to this question ('yes'), however, recently I've been trying to build an app that detects whether or not the administrator has correctly configured the database. I'd like to

Re: [Rails-core] Re: Model Namespaces

2006-01-02 Thread Zach Dennis
Andreas wrote: Zach Dennis wrote: Whats the status (if any) on namespace pollution in rails? Are things moving towards a friendlier namespace or no? If not, I would like to open it up for discussion and perhaps suggest some idea to fix this, Did you read http://wrath.rubyonrails.org/pipe

Re: [Rails-core] Unable access which domain in my routes.rb to map custom route tables per domain

2006-01-02 Thread Duane Johnson
On Dec 30, 2005, at 4:52 PM, Nathaniel S. H. Brown wrote: I have tried all night trying to find a way to get the host name which is currently being used within my routes.rb file to do some case/when switching for specific domains such as this cgi = ActionController::CgiRequest.new(

[Rails-core] Re: Model Namespaces

2006-01-02 Thread Andreas
Zach Dennis wrote: Whats the status (if any) on namespace pollution in rails? Are things moving towards a friendlier namespace or no? If not, I would like to open it up for discussion and perhaps suggest some idea to fix this, Did you read http://wrath.rubyonrails.org/pipermail/rails-core/2

Re: [Rails-core] call a method once per page request

2006-01-02 Thread Charles M. Gerungan
On 2-jan-2006, at 10:48, Jean-Christophe Michel wrote: def my_method return true if @@my_method_called @@my_method_called = true # do something end Sure it would work. Is it a good practice to use a global for such a problem ? @@class_var. -- Regards, Charles. __

Re: [Rails-core] call a method once per page request

2006-01-02 Thread Jean-Christophe Michel
Rick Bradley a écrit : >>I'm wondering if there is a simple solution to call a method once per >>page request. >> > Seems like a before_filter should be sufficient, simply > > def my_method > return true if @@my_method_called > @@my_method_called = true > # do something > end Sure it would

[Rails-core] Model Namespaces

2006-01-02 Thread Zach Dennis
Whats the status (if any) on namespace pollution in rails? Are things moving towards a friendlier namespace or no? If not, I would like to open it up for discussion and perhaps suggest some idea to fix this, Zach ___ Rails-core mailing list Rails-co