Re: [Rails-core] extra attributes in habtm

2006-05-30 Thread choonkeat
On 5/31/06, Michael Koziarski <[EMAIL PROTECTED]> wrote:> Sadly, HABTM has to support those 'rich attributes'. Pulling in those values is a 'feature' not a bug. The consequence of this is that HABTM cannot support join tables with a column called id. Regardless of whether its a feature, b

Re: [Rails-core] extra attributes in habtm

2006-05-30 Thread Rick Olson
Sadly, HABTM has to support those 'rich attributes'. Pulling in those values is a 'feature' not a bug. The consequence of this is that HABTM cannot support join tables with a column called id. Just a thought, but adding this patch might be way to transition folks from habtm to has_many :thr

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Nicholas Seckar
On May 30, 2006, at 6:35 PM, Nicholas Seckar wrote: It would not be hard to make a plugin to do this... Actually Nicholas, putting this into core would be a good idea, as we could 'fix' caching -- we could save page caches to all the paths for a parameter set, and sweepers would be able t

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Jamis Buck
On May 30, 2006, at 4:04 PM, Charlie Bowman wrote: Charlie, I'm afraid I don't understand. How would it know to build /pragmatic/ index from {:controller => "pragmatic", :action => "index"}, when you've connected it to ''? You can't have one route that maps to two paths, I'm afraid. - Jamis

Re: [Rails-core] extra attributes in habtm

2006-05-30 Thread Michael Koziarski
I can understand habtm is moving towards deprecating support for extra attributes in join_table, and to use :through for those cases instead. To clarify, patch for #5216 wasn't looking to support populating extra attributes in join table. But rather, it was meant to make habtm resilient against e

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Nicholas Seckar
On May 30, 2006, at 3:11 PM, Charlie Bowman wrote: Will there now be a way to get the long url back? Here's an example. map.connect '', :controller => "pragmatic", :action => 'index' Can we now map this back to /pragmatic/index by using url_for? I don't know if anyone else uses this, but

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Charlie Bowman
Charlie, I'm afraid I don't understand. How would it know to build /pragmatic/ index from {:controller => "pragmatic", :action ="" "index"}, when you've connected it to ''? You can't have one route that maps to two paths, I'm afraid. - Jamis That's what I thought.  I spent quite a l

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Rodney Ramdas
ah but a documentation patch is being worked on: http://dev.rubyonrails.org/ticket/5165 Please, write a decent documentation, since the current one is kinda missing. :) ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyo

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Jamis Buck
On May 30, 2006, at 1:11 PM, Charlie Bowman wrote: Will there now be a way to get the long url back? Here's an example. map.connect '', :controller => "pragmatic", :action => 'index' Can we now map this back to /pragmatic/index by using url_for? I don't know if anyone else uses this, but

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Rodrigo Kochenburger
It would be nice if route parameters could be dinamicly accessible by default values. Something like this: map.dashboard ':module', :controller => '#{module}/dashboard' So http://thedomain.com/organizer would actually call :controller => "organizer/dashboard', :action ="" 'index' But there's a p

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Dan Webb
Hi Jamis, Thanks for the notice. I'll keep an eye on it and make adjustments to the Request Routing plugin as necessary. I'm looking forward to a rewrite of the routing code, it's the most difficult to extend of part of Rails. Cheers, Dan On 5/30/06, Jamis Buck <[EMAIL PROTECTED]> wrote: Ni

Re: [Rails-core] Routing rewrite

2006-05-30 Thread Charlie Bowman
Will there now be a way to get the long url back?  Here's an example. map.connect '', :controller => "pragmatic", :action ="" 'index' Can we now map this back to /pragmatic/index by using url_for?   I don't know if anyone else uses this, but it would really help me out on the page expiration

[Rails-core] Routing rewrite

2006-05-30 Thread Jamis Buck
Nicholas Seckar and I have been working on a rewrite of the routing code, making it leaner, faster, and easier to understand. It will also be easier to extend, so it is an all-around win. However, because it is a rewrite, the internals have changed significantly. If you have code (a plugin

[Rails-core] extra attributes in habtm

2006-05-30 Thread choonkeat
Hi,Posting here since issue tracking isn't the best place to discuss.I can understand habtm is moving towards deprecating support for extra attributes in join_table, and to use :through for those cases instead. To clarify, patch for #5216 wasn't looking to support populating extra attributes in

[Rails-core] Current process for tickets

2006-05-30 Thread Manfred Stienstra
This afternoon I was looking at the tickets posted in Trac, and I saw that there we quite a few stale tickets and patches. A lot of these are filed against very old versions of Rails, I think it's fair for the people posting these tickets that they get resolved. Either by just removing them

[Rails-core] :limit option in schemas/migrations

2006-05-30 Thread Tom Ward
There's some confusion as to what the :limit option should mean when used against integer columns in migrations. Patch #2900 added support for limits in PostgreSQL mapping mapping limit < 4 to smallint, > 4 to bigint, and anything else to integer (so the limit is the number of bytes) However, th