Re: [Rails-core] [PATCH] add optional count parameter to pluralize

2006-07-21 Thread Mislav Marohnić
There is already a view helper with that functionality. Is it needed outside of views?On 7/20/06, Caio Chassot < [EMAIL PROTECTED]> wrote:Inspired by the pluralize method in the text_helper, here's a patch that adds an optional count parameter to Inflector.pluralize. ___

[Rails-core] Log coloring should be disabled on Windows

2006-07-12 Thread Mislav Marohnić
While coloring of what ActiveRecord produces in logs definately helps readability and I like it as much as you do, I think those who develop on Windows (and don't use Cygwin) shouldn't be doomed to manually disabling it in each and every development instance: config.active_record.colorize_logging

Re: [Rails-core] Re: ticket 5336

2006-07-09 Thread Mislav Marohnić
Very insightful post, Kamil!On 7/9/06, Kamil Kukura <[EMAIL PROTECTED]> wrote: Regarding this, you might be interested in a post I have written sometime ago: http://article.gmane.org/gmane.comp.lang.ruby.rails/53653 ___ Rails-core mailing list Rails-core

Re: [Rails-core] Showing SQL Server some love...

2006-07-08 Thread Mislav Marohnić
Having both Postgres and SQL server in addition to Oracle autotest results on the list would spam it pretty much, I think. What do others think?On 7/8/06, Rick Bradley <[EMAIL PROTECTED]> wrote: We have some interest in providing the same service for Postgres --would you be so kind as to forward m

Re: [Rails-core] Re: Patch for #3438: Eager loading doesn't respect :order of association

2006-07-02 Thread Mislav Marohnić
Not particularly friendly indeed, but you're right - if you want order, specify it. Like Ruby hashes, you never know what you're gonna get :)I don't know about Oracle, but in Postgres it's never smart to rely on 'default' ordering because when a complex query is altered or Postgres version chages,

Re: [Rails-core] Using file extensions to override respond_to behavior

2006-06-30 Thread Mislav Marohnić
Seems like a good feature. I would definately like to see this. There isn't anything in trunk of this at the time of writing... that could mean that writing this hasn't been started yet. It doesn't seem hard to implement, though - you could hack the router to change the "accept" header in the reque

Re: [Rails-core] Understanding Active Records innards

2006-06-30 Thread Mislav Marohnić
I totally agree. That is how I started and learned much. From ActiveRecord::Base you can dig deeper into associations and anything else that interests you.Me, I learned the most when I tried to patch the odd behaviour of STI. I didn't quite had much success at the time, but I learned much and event

Re: [Rails-core] RawPostDataTest#test_put_with_empty_content_type_ignores_body failure

2006-06-28 Thread Mislav Marohnić
This has been like this for quite some time now on Win32. The problem is that, when you save an empty string into an ENV variable, it is later returned as nil. Since the whole core team is on OS X they don't experience this and therefore it was never fixed. 4 weeks ago I submitted a patch for this

Re: [Rails-core] [Rails] Can Rails render pages if there is no database connected?

2006-06-23 Thread Mislav Marohnić
Don't forget that you can tell Rails not to require certain frameworks (in this case ActiveRecord)in your environment configuration (environment.rb). The line that shows how to do that is commented withactive_mailer and action_web_service as an example; just add active_record to the array. On 6/23/

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

2006-06-14 Thread Mislav Marohnić
On 6/14/06, Jamis Buck <[EMAIL PROTECTED]> wrote: Note that Strongspace and bittorent *display* the number as KiB, etc. You can still do that in Rails--the Numeric#kilobyte method is for programmers to call--it's up to you to tell the user what the units are. Thus, there is nothing preventing yo

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

2006-06-14 Thread Mislav Marohnić
On 6/14/06, Jamie Quint <[EMAIL PROTECTED]> wrote: I think the alias idea is a good one. I have submitted a patch thatdoes exactly that.http://dev.rubyonrails.org/ticket/5387Jamie, Your patch has one fundamental flaw. Purists who would want to use kibibyte etc. to display sizes measured in base 2

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

2006-06-13 Thread Mislav Marohnić
Take a quick quiz. A kilobyte is:  a) 1000 bytes;  b) 1024 bytes.If you have answered [b], then you may be a good programmer (binary-aware) but would sure be a poor scientist. Prefixes 'kilo', 'mega' and so on by standard measure in base 10 units (eg 'kilo' is 10**(3*1), 'mega' is 10**(3*2) ...). S

Re: [Rails-core] Getting back to the old story of Unicode support

2006-06-11 Thread Mislav Marohnić
That is some nice work here, Julian. Proxy access makes this possible to adopt while not breaking anything - I would, too, like to see this someday _without_ a proxy.I have a question and a request that aren't really about the hacks (I would leave that to more experienced programmers) but about the

Re: [Rails-core] Too. Many. Scriptaculous. Tickets.

2006-06-08 Thread Mislav Marohnić
On 6/8/06, Giles Bowkett <[EMAIL PROTECTED]> wrote: Requests for enhancements which require no action on the requestor'spart are guaranteed to trigger "tragedy of the commons" effects. Thatis, if people can get things for free, the resource will be wasted, irrespective of how useful it is.+1 on get

[Rails-core] Windows breakage and a series of patches

2006-06-04 Thread Mislav Marohnić
I've been using edge Rails for development. Ever since the router rewrite, Rails was broken for me on Windows. Running unit tests discovered more errors and failures than I suspected, and, since they looked win32-specific, I decided to pull up my sleeves and fix them instead of just reporting becau

Re: [Rails-core] Too. Many. Scriptaculous. Tickets.

2006-06-04 Thread Mislav Marohnić
On 6/4/06, Michael Koziarski <[EMAIL PROTECTED]> wrote: > If you're overwhelmed with feature requests from a particular area, the> solution is not to force people to stop requesting. The solution is to use> Trac more effectively.Filters don't actually solve anything.  If all  12 people with commit

Re: [Rails-core] Too. Many. Scriptaculous. Tickets.

2006-06-03 Thread Mislav Marohnić
If you're overwhelmed with feature requests from a particular area, the solution is not to force people to stop requesting. The solution is to use Trac more effectively. Use filters, for christ sake! And it may be good idea that some available Trac reports ( http://dev.rubyonrails.org/report) filte