[Rails-core] [CruiseControl] RubyOnRails build 8865 failed

2008-02-13 Thread alexey . verkhovsky
The build failed. CHANGES --- Revision 8865 committed by rick on 2008-02-14 07:24:09 Improve associations performance by avoiding named block arguments. Closes #11109 M /trunk/activerecord/CHANGELOG M /trunk/activerecord/lib/active_record/associations/association_collection.rb M /trun

[Rails-core] Re: Random in ActiveRecord

2008-02-13 Thread Daniel Morrison
Nuno, I blogged (http://daniel.collectiveidea.com/blog/2007/5/17/the-road-to- randomness) about this a while ago and got some great feedback from Mislav (read the comments). I made a plugin (though rarely use it) and if you want to improve it, be my guest! I tend to agree that this shouldn't be

[Rails-core] [PATCH] ActiveResource should allow setting user and password.

2008-02-13 Thread Ernesto Jiménez
Hello, I just uploaded this patch: http://dev.rubyonrails.org/ticket/2 The point is URI restricts username and password and, for example, you cannot use emails as usernames. I have patched ActiveResource to allow the following syntax: class Person < ActiveResource::Base self.site = "http:/

[Rails-core] render :partial => @person & render :partial => @people will work in namespaced controllers.

2008-02-13 Thread Jacek Becela
Hello, I've just added a patch to http://dev.rubyonrails.org/ticket/9742 which should (tests pass) work as advertised in the subject line. This is my first contribution, please take a look. Feedback greatly appreciated. -- Jacek Becela --~--~-~--~~~---~--~~ You

[Rails-core] Re: More AR performance patches requested for review

2008-02-13 Thread Jeremy Kemper
On 2/13/08, Alexander Dymo <[EMAIL PROTECTED]> wrote: > Hi, > I can't remember whether I promised more performance patches, but anyways here > they are ;) Great work, Alexander! It's wonderful seeing our memory footprint shrink, bit by bit. Best, jeremy --~--~-~--~~~---

[Rails-core] More AR performance patches requested for review

2008-02-13 Thread Alexander Dymo
Hi, I can't remember whether I promised more performance patches, but anyways here they are ;) http://dev.rubyonrails.org/ticket/11108 By rewriting string callbacks to symbol callbacks in AR associations we can get significant performance improvement because there's no need to create extra Bin

[Rails-core] Re: Internationalization

2008-02-13 Thread Josh Susser
On Feb 13, 2008, at 8:36 AM, Nuno Job wrote: > I'm Portuguese and it really bothers me that rails has no decent > internationalization support in it's core. > > A simple yaml dictionary-like file would be enough to translate it to > different languages and using a smart route we could translate t

[Rails-core] Re: Internationalization

2008-02-13 Thread Jack Danger Canty
On Feb 13, 2008 8:36 AM, Nuno Job <[EMAIL PROTECTED]> wrote: > I know there are some plugins for this but I'm conviced that it would > be done the rails way, simple and clean, if it was in the core. > The authors of the various i18n plugins are, unless something's gone haywire, working out how to

[Rails-core] Re: Funny behavior with Fixtures... on Ubuntu..

2008-02-13 Thread Sonny Chee
Rick Denatale wrote: > One thought is to check that you are using a mysql table type which > supports transactions. Innodb does, myisam (which is or used to be > the default for mysql) does not. > Awesome, that did the trick. It appears the Debian/Ubuntu release for mySQL 5 has the table type

[Rails-core] Re: Internationalization

2008-02-13 Thread Josh Knowles
On 2/13/08, Nuno Job <[EMAIL PROTECTED]> wrote: > > I'm Portuguese and it really bothers me that rails has no decent > internationalization support in it's core. Last I checked the project was still Open Source, and in fact its still accepting patches! Feel free to add this functionality if it r

[Rails-core] Internationalization

2008-02-13 Thread Nuno Job
I'm Portuguese and it really bothers me that rails has no decent internationalization support in it's core. A simple yaml dictionary-like file would be enough to translate it to different languages and using a smart route we could translate the 7 basic actions + models + error messages to any lan

[Rails-core] Rails_Currency_Convertor Gem

2008-02-13 Thread Naveen Joshi
Hi Folks I have created a currency converter Gem in rails, It is a currency converter built in ruby on rails, It will allow the users to convert currency from/to any currency value. Usage: require "rcurrency" result = RCurrency::Convertor.convert(100, "CNY", "USD") Kindly take out some time to

[Rails-core] Re: Funny behavior with Fixtures... on Ubuntu..

2008-02-13 Thread Rick DeNatale
On 2/13/08, Rick DeNatale <[EMAIL PROTECTED]> wrote: > Try setting use_transactional_fixtures to fall and see if it makes a > difference. s/fall/false/ -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~-~--~~~---~--~~ You received thi

[Rails-core] Re: Funny behavior with Fixtures... on Ubuntu..

2008-02-13 Thread Rick DeNatale
On 2/12/08, Sonny Chee <[EMAIL PROTECTED]> wrote: > > Hey Guys, > > I've got a test class that loads a bunch of fixtures. My understanding > is that fixtures are reloaded between each test... and I even have the > following two method calls at the top of my test class to make doubly > sure... > >

[Rails-core] ActiveRecord::Base#toggle! - bad implementation or documentation

2008-02-13 Thread Jan De Poorter
ActiveRecord::Base#toggle! is used to toggle an attribute true or false, and immediatly save it. It is implemented to call the toggle method, and then call update_attribute to save to the database. The problem I see with this is that there is no validation, when toggling a boolean. In my op