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.
___
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
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
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
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,
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
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
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
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/
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
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
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
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
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
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
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
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
17 matches
Mail list logo