Re: [Rails-core] Strip Owner Name From Table Aliases On Eager Loading

2006-03-21 Thread Rick Olson
On 3/21/06, Ed C. <[EMAIL PROTECTED]> wrote: > What about surrounding the AS clause with square brackets, like > "dbo.Users AS [dbo.Users] ? Rails truncates table alias names in one spot, making this a dead simple change to make. Try this in a plugin: ActiveRecord::ConnectionAdapters::SQLServerA

Re: [Rails-core] Strip Owner Name From Table Aliases On Eager Loading

2006-03-21 Thread Ed C.
What about surrounding the AS clause with square brackets, like "dbo.Users AS [dbo.Users] ? On 3/20/06, Jeff Berg <[EMAIL PROTECTED]> wrote: > Yeah, you can't have a period in an Alias. I don't see how this would > hurt anyone but maybe it would be better to replace the periods with > underscores

[Rails-core] Generated Fixtures and custom primary key

2006-03-21 Thread Frederick Ros
Hi all, I need to work with Rails on a legacy database that does not follow Rails convention (the primary key name for example is Id instead of id). To be able to make it works, I changed the default primary key name using the ActiveRecord::Base::set_primary_key function, and it works great. How

Re: [Rails-core] r3981 causes SystemStackError

2006-03-21 Thread Francois Beausoleil
Hello James, 2006/3/21, James Adam <[EMAIL PROTECTED]>: > 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 shoul

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] r3981 causes SystemStackError

2006-03-21 Thread Francois Beausoleil
http://dev.rubyonrails.org/changeset/3981 ?!? The changes are a rename of RailsInfoController to Rails::InfoController. That seems to be completely unrelated to this error: $ ruby script\server => Booting WEBrick... ./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.r