Re: [Rails-core] Investigating Unicode. Take 2, with nastities and allegations.

2005-12-22 Thread Jamis Buck
On Dec 22, 2005, at 3:47 PM, Julian 'Julik' Tarkhanov wrote: I am just upset because it's so broken and I seem to be the only one whining and asking questions. Maybe I am asking them wrong, I don't know. Or I seem to be the only Rails user needing to use both an ß and a Ш in a single strin

Re: [Rails-core] Investigating Unicode. Take 2, with nastities and allegations.

2005-12-23 Thread Jamis Buck
On Dec 23, 2005, at 3:49 AM, Thijs Van Der Vossen wrote: Please, please, don't ignore this issue because David said that i18n should be handled at the application level. One more time, and then I sign out of this thread for good: The rails team is NOT ignoring this issue. Rather, the rails t

Re: [Rails-core] Re: spinner/spawner: is it really necessary to load the Rails environment?

2006-01-09 Thread Jamis Buck
On Jan 9, 2006, at 8:41 PM, Rick Olson wrote: The spinner process is running all the time, and because it has loaded and initialized the whole Rails environment (boot.rb etc.) it uses a lot of RAM. The same goes for the spawner process. It is started every #{interval} seconds, and because it

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

2006-01-26 Thread Jamis Buck
On Jan 26, 2006, at 9:57 AM, Jeremy Kemper wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 26, 2006, at 8:40 AM, Duane Johnson wrote: Jamis Buck and I had a few ideas tonight that would each take care of the CgiRequest bug where switching between Rails apps that have different

Re: [Rails-core] Composite primary key support in ActiveRecord?

2006-02-18 Thread Jamis Buck
On Feb 18, 2006, at 12:28 PM, Dae San Hwang wrote: On Feb 19, 2006, at 4:12 AM, Kevin Clark wrote: You'd really run 10,000 forums out of one database with shared tables? The argument is for the sake of argument. If you're that successful, you wouldn't make that choice. My point was really

Re: [Rails-core] implicit templates in ActionMailer broken due to change in ActionView

2006-03-18 Thread Jamis Buck
Andrew, Thanks for this bug report. I've confirmed that the AM unit tests are failing rather spectacularly. I'll jump in and see what I can discover. - Jamis On Mar 18, 2006, at 1:34 PM, Andrew Kaspick wrote: Hello, I've been using edge rails for a while now and used the recipe from the n

Re: [Rails-core] implicit templates in ActionMailer broken due to change in ActionView

2006-03-18 Thread Jamis Buck
Ok, this is fixed now. It was a fortunately simply matter of having AM report the full template file name to AV, instead of requiring AV to try and guess which one matches based on the name-minus-extension. - Jamis On Mar 18, 2006, at 3:45 PM, Jamis Buck wrote: Andrew, Thanks for this

Re: [Rails-core] ganging up on tests and docs

2006-04-26 Thread Jamis Buck
On Apr 26, 2006, at 2:49 PM, Michael Koziarski wrote: As I see it, the reason to "hide" the internal api, from at least the main api documentation, is that there are far more people interested in working *with* Rails than there are people interested in working *on* Rails. For that 80 plus p

Re: [Rails-core] [SUMMARY] Rails Core Weekly ( May 7-16)

2006-05-18 Thread Jamis Buck
Great summary, Rodney. Thanks! - Jamis On May 18, 2006, at 1:12 AM, Rodney Ramdas wrote: Dear List, I've written up summaries of the list for my own personal benefit. I'd be happy to post them to the list if it's useful. Here's one for last week or so. Suggestions, feedback are welcome. Rai

[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

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 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

[Rails-core] Routing rewrite, checked in

2006-06-01 Thread Jamis Buck
Just a quick update--the routing rewrite has been checked in. We've already noticed a few things broken and have patching them this morning, but we'd love to hear from those of you willing to test their apps with the bleeding edge. Thanks! - Jamis __

Re: [Rails-core] Routing rewrite, checked in

2006-06-01 Thread Jamis Buck
Hampton, Thanks for your testing on this. It does appear that :id, at least, is extra sticky now. We'll see what can be done with this, since it should definitely not be acting so zealous. - Jamis On Jun 1, 2006, at 12:58 PM, Hampton wrote: Further: I was trying to fix my code to use th

Re: [Rails-core] The old deal with url_for in Mailer

2006-06-05 Thread Jamis Buck
On Jun 5, 2006, at 10:32 AM, Julian 'Julik' Tarkhanov wrote: On the subject of http://dev.rubyonrails.org/ticket/1138 As we are now revamping the routing, maybe it might be sensible to create a decoupled url_for that only depends on the Routes and bails if no routes have been defined? I'd say

Re: [Rails-core] RegexpError (regular expression too big)

2006-06-07 Thread Jamis Buck
Solomon, I'll definitely take a look at it today and see what I can find. In the meantime, please note that the current routes impl is NOT ready for production. It is known to be inefficient in several areas (particularly route generation) and buggy (as you discovered). We are working har

Re: [Rails-core] RegexpError (regular expression too big)

2006-06-07 Thread Jamis Buck
Solomon, Can you svn up and see if it works now? I've made the possible_controllers code smarter, so it should return a much smaller list of possible controllers. Definitely still room for improvement, but it's better than it was. - Jamis On Jun 7, 2006, at 7:52 AM, Jamis

Re: [Rails-core] Routing code patch

2006-06-07 Thread Jamis Buck
Blair, thanks for this patch. It's been applied. - Jamis On Jun 6, 2006, at 5:36 PM, Blair Zajac wrote: I just opened a ticket for the new routing code that breaks the restful_rails plugin. The plugin is using the public API for inserting routes and not going behind the scenes, besides add

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

2006-06-13 Thread Jamis Buck
My vote: changing Numeric#kilobyte at this point will result in breakage. Thus, we can't cause the existing kilo/mega/etc. methods to change. However, I think the unitless approach is worth investigating: Numeric#kilo #-> n*1_000 Numeric#mega #-> n*1_000_000 etc. - Jamis On Jun 13, 2

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

2006-06-14 Thread Jamis Buck
On Jun 14, 2006, at 4:09 AM, Mislav Marohnić wrote: On 6/14/06, Jamie Quint <[EMAIL PROTECTED]> wrote: I think the alias idea is a good one. I have submitted a patch that does exactly that. http://dev.rubyonrails.org/ticket/5387 Jamie, Your patch has one fundamental flaw. Purists who would wa

Re: [Rails-core] RegexpError (regular expression too big)

2006-06-18 Thread Jamis Buck
On Jun 18, 2006, at 4:53 PM, Solomon White wrote: Jamis-- Seems to have worked for us, we're back on edge. How far from production-ready do you estimate the new routes implementation to be? We're about to convert a fairly high-traffic site from its current JSP implementation to our rail

Re: [Rails-core] Routing failures on r4498

2006-06-28 Thread Jamis Buck
Francois, I suspect the problem is that the :game regex has \A and \Z in it. Because the new routes put that verbatim into the larger route regex, the match will fail. (Ditto for the /^.*$/ regex, with the ^ and $ anchors.) I *think* (Nicholas, correct me if I'm wrong) that you can just t

Re: [Rails-core] simply_restful plugin

2006-06-28 Thread Jamis Buck
Zack, The pluralization is intentional. This is because of the collection- oriented nature of resources. If you have a "message" resource, you get the collection of all messages at "/messages", and a single message at "/messages/2". The controller itself manages "messages" (serves up eithe

Re: [Rails-core] [PATCH] Simply_restful foo_destroy_url

2006-07-16 Thread Jamis Buck
Something like the following, then? GET /articles/1;confirm Which you configure by doing: map.resource :article, :member => { :confirm => :get } Then, you can get at that URL by invoking confirm_article_url. Lastly, just make sure your #confirm method has the link to DELETE, like Rick

Re: [Rails-core] Deprecation with a Difference

2006-07-26 Thread Jamis Buck
Caio Chassot wrote: On 2006-07-26, at 16:16 , Kevin Clark wrote: The things that are planned sound great. Expanding on Ryan's idea, I think using deprecated methods should be considered an error. Once the code goes in, I'd like to write a plugin that raises a deprecation exception (when in the

Re: [Rails-core] Re: ruby 1.8.5 warnings

2006-08-02 Thread Jamis Buck
Nicholas Seckar wrote: On 8/1/06, *Courtenay* <[EMAIL PROTECTED] > wrote: In some cases, (mainly routing), there is a bunch of whitespace to help readability... This is just the sign of an ongoing battle between Jamis and I. Eventually one will emerge th

Re: [Rails-core] map.resource with nested controllers

2006-08-05 Thread Jamis Buck
David Heinemeier Hansson wrote: if I want :controller => 'folder/controller', I can't use: map.resource 'folder/controller' Are nested controllers not considered 'RESTful practice' and therefore not supported? That's one of the last things on the todo list. They should work. Someone who needs

Re: [Rails-core] update_attribute vs. update_attributes

2006-08-12 Thread Jamis Buck
Chris, What validations do you have on the Campaign model? I suspect you're running into something like validates_uniqueness_of, which uses a select to determine whether the attribute is unique or not. - Jamis Chris Abad wrote: Full code: http://pastie.caboo.se/7856 Relevant code: @campai

Re: [Rails-core] Plugin Routes

2006-08-17 Thread Jamis Buck
You may want to take a look at the new routing implementation, too. The new RouteSet#draw does not yield self, it yields an instance of Mapper, which delegates to RouteSet. Thus, your custom methods need to be added on Mapper, not RouteSet. - Jamis Bob Silva wrote: Have you tried RouteSet.ad