Re: [Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-04 Thread Stefan Kaes
Dave Thomas wrote: I still can't get it to work for my simple examples in the book, and I'm not documenting it in the second edition because of that. I've tried to find folks to look at the problems I'm seeing, but to no avail, so as far as it seems from the outside (to me at least) this is un

Re: [Rails-core] help finishing a patch for label helpers? [#362]

2006-07-06 Thread Stefan Kaes
Jeremy Kemper wrote: On Jul 5, 2006, at 5:43 PM, Peter Michaux wrote: Rick, it looks like a little more than hacking. What is stopping your patch from going into the core? (BTW, you quoted his answer just a few lines up.) I use labels too and would like to see them in the standard form builde

Re: [Rails-core] Issue in ActiveRecord generated reader methods

2006-05-09 Thread Stefan Kaes
Jeff Hall wrote: Hi all! I have come into a strange issue in Rails that I am hoping someone can shed some light. To make a very long story short, I have been researching how to override ActiveRecord::Base#read_attribute and write_attribute to perform security checks at the model level (infl

Re: [Rails-core] Default MySQL socket

2006-03-04 Thread Stefan Kaes
Michael Koziarski wrote: That is, setting a socket is the exception rather than the rule. For most of the get-up-and-running apps I've seen, the socket isn't necessary. Trying to set it is often an impediment to getting started with Rails. But I suspect there may be downsides that led to the d

Re: [Rails-core] Edge + Webrick + Helloworld now fails

2006-03-02 Thread Stefan Kaes
Duane Johnson wrote: I've got the same thing happening on each page load. See ticket http://dev.rubyonrails.org/ticket/4044 -- For rails performance tuning, see: http://railsexpress.de/blog Subscription: http://railsexpress.de/blog/xml/rss20/feed.xml __

Re: [Rails-core] MySQL doesnt close connections

2006-03-02 Thread Stefan Kaes
Bob Silva wrote: Still haven't tracked it down, but if I set @@allow_concurrency = true, the test suite passes fine. No one has ever run the tests with allow_concurrency = false, because the default was allow_concurrency = true. Maybe the test system probably was never fit for this scenario.

Re: [Rails-core] MySQL doesnt close connections

2006-03-02 Thread Stefan Kaes
Bob Silva wrote: Trying to track it down now, but I svn up'd right after running successful tests, and running the tests again runs until mysql reaches its connection limit and all further tests fail with too many connections errors. I've verified that the connections aren't getting closed with m

Re: [Rails-core] Edge + Webrick + Helloworld now fails

2006-03-01 Thread Stefan Kaes
Stefan Kaes wrote: Please try http://dev.rubyonrails.org/attachment/ticket/3979/connection_cache_bug.patch This should fix all problems. Please use http://dev.rubyonrails.org/attachment/ticket/3979/connection_cache_bug2.patch some private methods had to be changed to public to satisfy AR

Re: [Rails-core] Edge + Webrick + Helloworld now fails

2006-03-01 Thread Stefan Kaes
Tom Ward wrote: On 2/28/06, Jeremy Kemper <[EMAIL PROTECTED]> wrote: For now, I'm removing the setting from the webrick server so folks can continue working with trunk. That's great, certainly the pragmatic solution. Please try http://dev.rubyonrails.org/attachment/ticket/3979/con

Re: [Rails-core] Edge + Webrick + Helloworld now fails

2006-02-28 Thread Stefan Kaes
Tom Ward wrote: On 2/28/06, Michael Schoen <[EMAIL PROTECTED]> wrote: I can reproduce this problem with my (very) basic toy application. Running Windows XP/Webrick/SQL Server. I'll see if I can locate the cause.. Ditto. I run into the same issue under Debian/Lighttpd/SCGI/Oracle.

Re: [Rails-core] Edge + Webrick + Helloworld now fails

2006-02-28 Thread Stefan Kaes
Jeremy Kemper wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Feb 27, 2006, at 4:04 PM, Kyle Maxwell wrote: This stopped working rather recently. NoMethodError in # undefined method `verify!' for {}:Hash RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Tra

Re: [Rails-core] [3679] causes failures in my code

2006-02-27 Thread Stefan Kaes
Francois Beausoleil wrote: Hi all ! r3679 | bitsweat | 2006-02-26 19:27:48 -0500 | 1 line Define attribute query methods to avoid method_missing calls. Closes #3677.

Re: [Rails-core] Flash data with lastest commit

2006-02-12 Thread Stefan Kaes
Bob Silva wrote: Looks like the flash lost its reset mojo with the commits last night. Its staying persistent now. There are several problems with changesets 3580 and 3581. I'm investigating. -- stefan -- For rails performance tuning, see: http://railsexpress.de/blog Subscription: http://ra

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

2006-02-12 Thread Stefan Kaes
Nathaniel S. H. Brown wrote: As I said before, I (or we, for whoever is in support) can solve the minor details, and provide solutions with a little bit of creativity. I am of the opinion that if you see points such as the ones you mentioned, you may also be able to see how to fix them, if y

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

2006-02-11 Thread Stefan Kaes
Nathaniel S. H. Brown wrote: I was just reading a blog post, about how PHP applications lack so much as far as security goes, and it got me thinking that Rails should come default secure, and you should have to force it to be less secure. On that note, I came up with the idea of having <%= defau

Re: [Rails-core] [3795] render_component doesn't work with modules?

2006-02-11 Thread Stefan Kaes
Rick Olson wrote: On 2/10/06, Trevor Squires <[EMAIL PROTECTED]> wrote: Hi Nathaniel, I'm using a version of edge (not the most recent, but after module namespace support was improved) and I use render_component into a module namespace quite extensively with no problems. I know you said you

Re: [Rails-core] Is :primary on Column meant to indicate if the column is the primary key?

2006-01-22 Thread Stefan Kaes
Steve Eichert wrote: I've been working on the SQL Server adapter recently and have a question about the intended use of the :primary attribute on the Column class. Is it meant to hold a boolean indicating if the column is the primary key? After reviewing the various adapters it doesn't appear t

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

2006-01-12 Thread Stefan Kaes
Jean-Christophe Michel wrote: Hi all, My problem is to try to call a method once per page request. (Context: I want to detect the current lang for localization, and this has to be done on each request, so lang passed through uri can have priority over session, browser prefs or default app lang).

Re: [Rails-core] Engines, Components and Modules

2006-01-04 Thread Stefan Kaes
Obie Fernandez wrote: I understand that the /components tree is more or less depricated, and I'd really like to see something done with it along these lines. Has this deprecation you speak of been written up anywhere or just your opinion? Just curious. I don't think they

Re: [Rails-core] Question about ActiveRecord#attributes=

2005-11-29 Thread Stefan Kaes
Charles Dupont wrote: Charles Dupont wrote: Problem: params = {:name => 'bob', :sitter => 'dog', children => 'foo'} correction: params = {:name => 'bob', :sitter => 'dog', :children => 'foo'} ActiveRecord model 'FooBar' with columns named 'name', 'sitter', 'houseboat'. If I do boo