Re: [Rails-core] 1.1.5 and engines

2006-08-14 Thread James Adam
Probably best not to post this to rails-core - try the engines lists instead. To answer your question, you might not see the error if active_rbac is explicitly require-ing it's controllers, which is what plugins must do with 1.1.6. - james On 8/10/06, Adam Fields <[EMAIL PROTECTED]> wrote: It's

Re: [Rails-core] Deprecation with a Difference

2006-07-26 Thread James Adam
On 7/26/06, Ryan Lowe <[EMAIL PROTECTED]> wrote: The downside is that it could clutter the test run output at the console (I don't usually check the test logs for output, so error messages there would go unnoticed) ... I understand if this suggestion isn't liked because of that reason, I just tho

[Rails-core] test:plugins task dependency on :environment is pointless, surely?

2006-07-22 Thread James Adam
Hello all, I've been doing quite a bit of rooting around the plugin system recently, and one thing in particularly has me puzzled and bemused. At the moment, the test:plugins task has a dependency on the :environment task, thus loading up Rails in all it's resplendent glory. Once it's done this i

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-17 Thread James Adam
On 7/17/06, zdennis <[EMAIL PROTECTED]> wrote: > That said, I think providing an 'import' method as a plugin would > certainly be useful to some people (especially those too lazy to > connect to a database by hand). I like to automate tasks, if that makes me lazy, then I am lazy. Me too - I mu

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-17 Thread James Adam
On 7/17/06, zdennis <[EMAIL PROTECTED]> wrote: AR is so well thought out and designed, this seems like a core feature that is just simply missing. Since you are looking for speed to the point where you are sacrificing validations, and pretty much anything else vaguely active-record-ish, beyond

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-17 Thread James Adam
Since the behaviour is different from that of create (i.e. no object instances are returned), why not just define a new method which clearly indicates it's aptitude for inserting large amounts of data? Model.import(hashes) or something... - james On 7/17/06, zdennis <[EMAIL PROTECTED]> wrote: -

Re: [Rails-core] Are you a kilobyte or a kibibyte person?

2006-06-13 Thread James Adam
Agreed - it doesn't seem harmful to include aliases such that people *can* call kibibyte and get the correct result, or possibly even move the actual implementation into those new methods and redefine the kilo/mega methods as aliases*... However, changing the default behaviour of kilobyte and meg

Re: [Rails-core] canada on rails -- organizer contact?

2006-04-09 Thread James Adam
You want to speak to Nathaniel Brown @ http://inimit.com/ HTH, - james On 4/9/06, Giles Bowkett <[EMAIL PROTECTED]> wrote: > Quick question. Is the organizer for Canada on Rails on here? I'm > hoping to organize a tech conference on a different topic so it would > be massively useful for me to l

[Rails-core] Changeset 3953 breaks link_to_remote/AJAX helpers

2006-03-22 Thread James Adam
The change in revision 3953 (http://dev.rubyonrails.org/changeset/3953) seems to have broken some AJAX helpers for me. In a test view .rhtml file, <%= link_to_remote 'blah', :url => { :action => "test", :param1 => 'A', :param2 => 'B'} %> produces blah (notice the "&" between parameter

Re: [Rails-core] r3981 causes SystemStackError

2006-03-21 Thread James Adam
I have seen this error recently - have you updated to the latest version of Engines trunk? It stems from a recursive failure during the redefinition of require_or_load, because the Rails::VERSION module wasn't already loaded. It should be fixed in the latest trunk. - james On 3/21/06, Francois Be

[Rails-core] assigns() method disappeared from test_process.rb

2006-03-01 Thread James Adam
I just noticed that the assigns() method has been dropped from action_controller/test_process.rb (http://dev.rubyonrails.org/changeset/3724). Was this an oversight or is there a new process for working with controller instance variables? -- * J * ~ ___

Re: [Rails-core] Database Adapter Plugin

2006-02-28 Thread James Adam
I think in your particular case it's perfectly fine to require the developer to add a special line - after all, this is a piece of code that will (hopefully) become a part of the core. It's just a fact of the way the plugin system works at the moment that some aspects of of the framework cannot be

Re: [Rails-core] some (long) thoughts on migrations

2006-02-20 Thread James Adam
Rails engines do indeed let you migrate sections of your application independently. It's pretty simple to achieve; the implementation can be seen in these files: http://opensvn.csie.org/rails_engines/engines/trunk/lib/engines/migration_extensions.rb http://opensvn.csie.org/rails_engines/engines/tr

Re: [Rails-core] Proposal: Deprecate ADO support in the SQL Server adapter

2006-01-29 Thread James Adam
On 1/29/06, Tom Ward <[EMAIL PROTECTED]> wrote: > As you can see, you can pass a full connection string as the dsn. I'd > like to factor the common parameters out of this string (server, db, > password, user) and use standard yaml > attributes to specify them, but I need to check how this will aff

Re: [Rails-core] How should we do away with the rubysess white page of death?

2006-01-27 Thread James Adam
I'll take a stab at it this weekend. On 1/27/06, Duane Johnson <[EMAIL PROTECTED]> wrote: > > Also, please someone do investigate #3474. I'd really like to declare > > a death to white screens in 1.1. > > Does anyone feel qualified to look at this? I can take a look, and > see what I can do. Any

Re: [Rails-core] How should we do away with the rubysess white page of death?

2006-01-26 Thread James Adam
At a slight tangent, isolating application sessions won't fully solve this problem; you can change the name of a Model object and see this 'white screen of death' within the same application. Something needs to be wrapped around the session loading to let Rails gracefully handle loading a malignant

Re: [Rails-core] Why does Object.subclasses_of ignore subclasses within modules?

2006-01-19 Thread James Adam
How likely d'you thing it is that this plays a significant part in the oft-discussed 'Rails has problems with modules' issue? - james On 1/19/06, Florian Weber <[EMAIL PROTECTED]> wrote: > I wrote a patch for that a while ago, but then got distracted. Will > follow up on it and let you guys know.

Re: [Rails-core] Engines, Components and Modules

2005-12-31 Thread James Adam
I would love to be able to do this. The one sticking point that I've come across at the moment is the way that Rails' dependencies automatically creates modules for ApplicationController subclasses. Continuing the WikiEngine example, intuitively you'd want to put your controllers underneath the Wi

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

Re: [Rails-core] What's the status on flexible fixtures?

2005-12-20 Thread James Adam
I'm not sure this is what Duane was suggesting - all his patch gives is some optional control over which table and which class is used to load a particular fixtures file... - james On 12/20/05, Tobias Luetke <[EMAIL PROTECTED]> wrote: > What is the reason for making fixtures more complicated? > I

Re: [Rails-core] What's the status on flexible fixtures?

2005-12-20 Thread James Adam
I can second this interest - I've adapted Duanes patch for our projects and it's a sound piece of code, I can't see any reason why it shouldn't be a part of Rails proper. On 12/18/05, Duane Johnson <[EMAIL PROTECTED]> wrote: > Hi, > > I talked with bitsweat about flexible fixtures at RubyConf but