[Rails-core] Merging Better Nested Set?

2007-11-14 Thread Krishna Dole
Hi, Now that acts_as_nested_set has been moved to a plugin, there has been talk on the Better Nested Set mailing list of merging our work into the official rails plugin. Before I put a patch together, I wanted to ask if the core team would be receptive to this. Is the official acts_as_nested_set

[Rails-core] Re: Upload - StringIO X FileTemp

2007-11-14 Thread Michael Koziarski
> Sorry, you are right. I had not seen that TempFile delegates to File and > File is parent of IO ... > Well, in any case it may be interesting document this kind of thing > anywhere ... > Perhaps I am not the only one to deal with this type of thing, and the > small change in the Rails only avoid

[Rails-core] Re: Exception Notification plugin options hash handling????? backwards merge?

2007-11-14 Thread Rick DeNatale
What the heck! http://dev.rubyonrails.org/ticket/10168 -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to

[Rails-core] Re: Exception Notification plugin options hash handling????? backwards merge?

2007-11-14 Thread Rick DeNatale
On Nov 14, 2007 4:39 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > It appears to me that he receiver and parameter of that merge message > in the argument to the body message should be reversed. > > Am I missing something here? > > Because of this I had to do some fairly ugly code which temporar

[Rails-core] Exception Notification plugin options hash handling????? backwards merge?

2007-11-14 Thread Rick DeNatale
Today I worked on adding email exception notification to some ancillary background processes for a Rails app. Since I was already using Jamis' exception notification plugin to notify me of errors in controllers for the web app, I figured that the path of least resistance was to try to figure out

[Rails-core] test_cache_does_not_wrap_string_results_in_arrays

2007-11-14 Thread knightsc
I'm trying to run the following test from the test suite for a Firebird 2.0 database def test_cache_does_not_wrap_string_results_in_arrays Task.cache do assert_instance_of String, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks") end end I get the followin

[Rails-core] Re: [DOC PATCH] Tiny Doc addition for those on leopard

2007-11-14 Thread Robert Evans
Hopefully that will be soon. I'll keep an eye on it. Jeremy Kemper wrote: > On 11/14/07, Robert Evans <[EMAIL PROTECTED]> wrote: >> Just a very small (3 line) documentation addition for those who are >> installing the mysql binding on leopard added to mysql.yaml file. >> >> Review: >> http://dev.

[Rails-core] Re: [DOC PATCH] Tiny Doc addition for those on leopard

2007-11-14 Thread Jeremy Kemper
On 11/14/07, Robert Evans <[EMAIL PROTECTED]> wrote: > Just a very small (3 line) documentation addition for those who are > installing the mysql binding on leopard added to mysql.yaml file. > > Review: > http://dev.rubyonrails.org/attachment/ticket/10167/mysql_yaml.patch Committed; thanks! Let'

[Rails-core] Re: [DOC PATCH] Tiny Doc addition for those on leopard

2007-11-14 Thread Ernest Prabhakar
On Nov 14, 2007, at 9:45 AM, Robert Evans wrote: > Just a very small (3 line) documentation addition for those who are > installing the mysql binding on leopard added to mysql.yaml file. > > Review: > http://dev.rubyonrails.org/attachment/ticket/10167/mysql_yaml.patch +1 ! Though, hopefully thi

[Rails-core] [DOC PATCH] Tiny Doc addition for those on leopard

2007-11-14 Thread Robert Evans
Just a very small (3 line) documentation addition for those who are installing the mysql binding on leopard added to mysql.yaml file. Review: http://dev.rubyonrails.org/attachment/ticket/10167/mysql_yaml.patch +1's Robert -- Posted via http://www.ruby-forum.com/. --~--~-~--~~-

[Rails-core] Re: Upload - StringIO X FileTemp

2007-11-14 Thread João Paulo Lins
On Wed, 2007-11-14 at 10:28 -0500, Jon Yurek wrote: > On Nov 14, 2007, at 9:29 AM, João Paulo Lins wrote: > > This code working for all versions and all sizes file > > > > if params[:upload_file].instance_of?(StringIO) > >a = parser(params[:upload_file]) > > else > >a =

[Rails-core] Re: --without-gems gone, bogus warning in rails --help?

2007-11-14 Thread Scott Bronson
On 11/13/07, Michael Koziarski <[EMAIL PROTECTED]> wrote: > It doesn't seem to be supported, nor does it seem particularly > necessary. Please do submit a patch to remove the warning. http://dev.rubyonrails.org/ticket/10165 Thanks Michael. --~--~-~--~~~---~--~~

[Rails-core] Re: Any Interest in Moving Rails SQL Views into AR?

2007-11-14 Thread Giorgi L.
Hi, Anthony, Maybe, one has to think about a different syntax, e.g., something like: create_view :my_view do |v| v.column :thing :from => table1.thing v.column :thing2 :from => table2.thing v.conditions :where=>some sql, :group => again_sql end Well, personally, I am convinced that e

[Rails-core] Re: run an individual active_record test?

2007-11-14 Thread Jon Garvin
Worked Perfectly. Thanks. Pratik wrote: > Instead of using rake, do it like : > > ruby -I"connections/native_mysql" base_test.rb -n whatever_test > > > -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~-~--~~~---~--~~ You receive

[Rails-core] Re: Upload - StringIO X FileTemp

2007-11-14 Thread Jon Yurek
On Nov 14, 2007, at 9:29 AM, João Paulo Lins wrote: > This code working for all versions and all sizes file > > if params[:upload_file].instance_of?(StringIO) >a = parser(params[:upload_file]) > else >a = parser(params[:upload_file].open) > end Perhaps I'm missing so

[Rails-core] Re: Upload - StringIO X FileTemp

2007-11-14 Thread João Paulo Lins
Hi Koz, On Wed, 2007-11-14 at 18:43 +1300, Michael Koziarski wrote: > What bugs have you hit due to this optimisation?Assuming that > removing it doesn't impact too poorly on performance, and we can't > make them ducktype nicely, then it seems reasonable to remove. I had problems on issues

[Rails-core] Re: db/schema.rb

2007-11-14 Thread Chris Cruft
Michael, Please see me earlier comment and see ticket 8389 -that's the patch for a task to support migration-based building of the test database. -Chris On Nov 14, 12:29 am, "Michael Koziarski" <[EMAIL PROTECTED]> wrote: > > 1 ) What, then, is the preferred mechanism for "seed" data in the > >

[Rails-core] Re: db/schema.rb

2007-11-14 Thread Chris Cruft
Stephen, Your questions are a mirror of mine. I am surprised that the emphasis placed on migrations for building the development and production databases does not extend to the test database. There is a rake task proposed on ticket 8389 (http:// dev.rubyonrails.org/ticket/8389) that addresses th

[Rails-core] Re: db/schema.rb

2007-11-14 Thread Jim Meyer
On Nov 13, 2007 8:17 PM, Stephen Touset <[EMAIL PROTECTED]> wrote: > Reading the Rails commit logs, I see that db/schema.rb's purpose has > been clarified. It's intended to be the authoritative location for > your database schema, and rake tasks like db:reset use it to rebuild > the schema rather