Re: [Rails-core] Components and Plugins

2005-12-30 Thread Michael Koziarski
On 12/31/05, Abdur-Rahman Advany <[EMAIL PROTECTED]> wrote: > Generating code is something I have never liked. Its good for basic > setup but hard to maintain. One of the benefits of components is that it > would be easy to update them... Conversely, generated code is easy to modify. The assumpti

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

2005-12-30 Thread Nathaniel S. H. Brown
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(CGI.new) case cgi.domain(1) when /www/

Re: [Rails-core] Components and Plugins

2005-12-30 Thread Abdur-Rahman Advany
Generating code is something I have never liked. Its good for basic setup but hard to maintain. One of the benefits of components is that it would be easy to update them... Deirdre Saoirse wrote: On Dec 30, 2005, at 5:08 AM, Abdur-Rahman Advany wrote: Thnx for the responds, but I think peop

Re: [Rails-core] Components and Plugins

2005-12-30 Thread Deirdre Saoirse
On Dec 30, 2005, at 5:08 AM, Abdur-Rahman Advany wrote: Thnx for the responds, but I think people are misunderstanding me. However, there are cases where you just need to make a component to hide the complexity of implementation (thats the case with for example fckeditor). It would just b

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

2005-12-30 Thread Jean-Christophe Michel
Hi, I'm wondering if there is a simple solution to call a method once per page request. I tried to place my call in a before_filter in ApplicationController but it'd called a second time if I use render_component from a view. Seems to me that a hook should be added in Dispatcher#prepare_applicati

Re: [Rails-core] Components and Plugins

2005-12-30 Thread Abdur-Rahman Advany
Hi, Thnx for the responds, but I think people are misunderstanding me. I have read a lot of the blogs (including davids) about rails and I understand his hesitation to resist the development of highlevel components. I have learned a lot by making a component based framework, it just doesn't w

Re: [Rails-core] Components and Plugins

2005-12-30 Thread James Adam
To answer Abdur's question - as I understand it, the core team want to keep the plugin system very simple, and while there are some mechanisms to handle plugin 'dependencies' (the private method 'load_plugin', for example - I can't find the Ticket that discusses this in its comments), there has als