Re: [Rails-core] Documentation Project

2006-08-05 Thread Rick Bradley
* court3nay ([EMAIL PROTECTED]) [060805 13:30]: > By the way.. we just passed $13,000 in donations. Yay, community! > > I'm going to need a NPO (non-profit) to funnel this through, what do you (i.e. > core-list) people think about a Rails foundation? It takes a long time to get 501(c)(3)'s set u

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-16 Thread Rick Bradley
* zdennis ([EMAIL PROTECTED]) [060716 20:33]: > Could someone check this out and give some feedback? I have started to > develop this as a separate plugin for ActiveRecord, but the more I think > about it the more it seems that this sort of thing should be in core. > Thoughts? Those are impressive

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

2006-07-08 Thread Rick Bradley
* Michael A. Schoen ([EMAIL PROTECTED]) [060707 22:18]: > Tom: let me know if you'd like a copy of the script I use to test > against the Oracle adapter after every checkin. It's not very fancy, but > it does a good job spamming rails-core when stuff breaks. ;-) We have some interest in providin

Re: [Rails-core] please apply patch to fix ActiveRecord

2006-03-31 Thread Rick Bradley
* Steve Longdo ([EMAIL PROTECTED]) [060331 15:21]: > good stuff! > > http://en.wikipedia.org/wiki/Continuous_integration > > http://docs.codehaus.org/display/DAMAGECONTROL/ > Continuous+Integration+Server+Feature+Matrix We've found the simple continuous_builder plugin for rails to be qui

Re: [Rails-core] issue with unit tests for AR calculations

2006-02-28 Thread Rick Bradley
* Michael Schoen ([EMAIL PROTECTED]) [060228 20:03]: > Yeah, except that seems backwards -- the key actually is an int, would > be nice if we could leave it that way. Actually forcing it to a string > in calculations seems odd. > > I was also thinking that it could be resolved by returning somet

Re: [Rails-core] some (long) thoughts on migrations

2006-02-20 Thread Rick Bradley
* Kevin Clark ([EMAIL PROTECTED]) [060220 14:54]: > The problem is the dependence tree. If you do it with timestamps, by > inserting your own migrations you may change things later migrations > depend on. Similarly, we lose the simplicity of VER#_description > because you wouldn't be able to use fi

Re: [Rails-core] Object finalization help

2006-02-20 Thread Rick Bradley
* Adam Ballai ([EMAIL PROTECTED]) [060220 14:30]: > Is this the correct way to set a finalizer or am I going about it the > wrong way. I need to close a socket connection _after_ the model goes > out of scope where GC usually happens. Do models get GC'd after a page > is done loading? Adam, I

Re: [Rails-core] some (long) thoughts on migrations

2006-02-20 Thread Rick Bradley
* Michael Koziarski ([EMAIL PROTECTED]) [060220 14:09]: > On 2/20/06, Kyle Maxwell <[EMAIL PROTECTED]> wrote: > > What if, instead of a simple integer sequence, migrations used timestamps? > > Could we do that in a backwards compatible way? The problem of local, > uncommited migrations isn't somet

Re: [Rails-core] some (long) thoughts on migrations

2006-02-20 Thread Rick Bradley
* Rick Olson ([EMAIL PROTECTED]) [060220 01:15]: > To work around this, I just started creating temporary models per > migration. I find that much nicer than reverting to > ActiveRecord::Base.connection for my delicate sql needs. It might be > best to create the temporary model classes inside the

[Rails-core] some (long) thoughts on migrations

2006-02-19 Thread Rick Bradley
First, long-winded thought #1: Today I was playing with a Rails app (Typo) and wanted to add a migration to support a new column in one of the data tables -- purely for some functionality that's almost certainly only of interest to me in my little Weblogging Kingdom. I immediately realized that i

Re: [Rails-core] Default <%= to use the h (html safe) method.

2006-02-19 Thread Rick Bradley
Kevin, Thanks for the good work putting this together. > There are some important limitations to note. Most importantly, it uses > the ActiveRecord after_find callback. This means that if you are using > this callback already, you will need to call super in your callback > routine somewher

[Rails-core] [PATCH] RJS templates cause render :action => :symbol to fail (#3861)

2006-02-16 Thread Rick Bradley
Hi all, I've submitted a ticket w/ patch & unit test for a problem we encountered with RJS templates. Since this is my first pass at going the patch + unit test route, could I convince someone to give it a quick eyeball to make sure I didn't do anything stupid (or at least abnormally so)? Thanks

Re: [Rails-core] #3775 - testing helpers which use ActionView methods

2006-02-09 Thread Rick Bradley
* Rick Olson ([EMAIL PROTECTED]) [060209 16:15]: > Check out the ActionView tests. Here's the tag helper tests, for example: > > http://dev.rubyonrails.org/browser/trunk/actionpack/test/template/tag_helper_test.rb > > The url_for tests require a controller, so you'll see some of them > creating

[Rails-core] #3775 - testing helpers which use ActionView methods

2006-02-09 Thread Rick Bradley
http://dev.rubyonrails.org/ticket/3775 I'm hoping someone will pop up and tell me I'm simply daft with this ticket (and queries on IRC, and a prior post to the main Rails list), but I can't get a peep out of anyone so far. The question is, how do I write a simple test for a helper method

Re: [Rails-core] call a method once per page request

2005-12-31 Thread Rick Bradley
* Jean-Christophe Michel ([EMAIL PROTECTED]) [051230 17:33]: > I'm wondering if there is a simple solution to call a method once per > page request. > > I tried to place my call in a before_filter in ApplicationController but > it'd called a second time if I use render_component from a view. > See

[Rails-core] Patch lovin' for #2018? ("rake appdoc fails on Windows systems")

2005-12-20 Thread Rick Bradley
Gurus (Guri? heh), We got burned today by #2018 ("rake appdoc fails on Windows systems"), and did a bunch of ferreting around (starting at the problems in rdoc,rake,rdoc.bat) and ultimately came back to the conclusion that the cleanest way to fix the problem is just a variation on a suggestion alr

Re: [Rails-core] On Rails-0.14.4 as 1.0, good, except for Oracle speed

2005-12-13 Thread Rick Bradley
* Michael Schoen ([EMAIL PROTECTED]) [051212 14:15]: > Can you try modifying oci_adapter.rb, and change OCIAdapter#active? to > use @connection.active? instead of @connection.ping. The > OCI8AutoRecover#active? method doesn't hit the db at all, it just > returns the last known state. This will b

Re: [Rails-core] rails breaking with ruby rc 1.8.4

2005-12-13 Thread Rick Bradley
* Ara.T.Howard ([EMAIL PROTECTED]) [051213 12:45]: > now, why this seems to be platform dependant i do not understand yet - > but the combination of autoloading hooks, require overrides, and > non-protected (unless defined?...) class defs and method aliases seem > fragile. The only thought I have

[Rails-core] On Rails-0.14.4 as 1.0, good, except for Oracle speed

2005-12-12 Thread Rick Bradley
A vote of confidence for 0.14.4 -> 1.0: We've successfully moved our app to 0.14.4. We have the following code stats: +--+---+---+-+-+-+---+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | +--+

Re: [Rails-core] automatic db retries

2005-12-09 Thread Rick Bradley
* Jeremy Kemper ([EMAIL PROTECTED]) [051209 15:50]: > http://dev.rubyonrails.org/ticket/3133 I owe you a beer, man. I was about 45 minutes from making that same patch. I somehow missed that ticket in the timeline. Thanks! Rick -- http://www.rickbradley.comMUPRN: 972

Re: [Rails-core] automatic db retries

2005-12-09 Thread Rick Bradley
* Wilson Bilkovich ([EMAIL PROTECTED]) [051209 11:20]: > Sorry to resurrect an old thread, but what about just defining a > "no-op" query for each adapter. In Oracle, that would be, say, > "select * from dual". > Many Java connection pool implementations have such a thing, and > execute it when a

Re: [Rails-core] Proposed syntax for using the host in routes

2005-12-07 Thread Rick Bradley
* Duane Johnson ([EMAIL PROTECTED]) [051207 14:30]: > As for the remaining variable, the port, it seems reasonable to > include it in the :host. Or else we can add another delimiter such > as a pipe: > > map.connect 'proto://:host|:port/:controller/:action/:id' Good points. Again, not havin

Re: [Rails-core] Proposed syntax for using the host in routes

2005-12-07 Thread Rick Bradley
* Duane Johnson ([EMAIL PROTECTED]) [051207 14:00]: > I have a patch coming soon (when I get authorization from my > employer) that will allow the use of the host name (domain, subdomain > etc.) in routes. Here's the syntax I'm working with right now: > > map.connect '//:host/:controller/:a

[Rails-core] #2837 - [PATCH] continuous_builder doesn't call Checkout properly

2005-12-06 Thread Rick Bradley
http://dev.rubyonrails.org/ticket/2837 This should be an easy commit for someone. The appropriate path isn't being used for Checkout.new in the continuous_builder plugin. I may be the only person outside the original developers to have gotten under the hood to hack around, but I turned this up,