[Rails-core] Re: RAILS_ENV hardcoded in too many places

2009-10-15 Thread Andrew Bloom
Wouldn't it make more sense to set it in the vhost (if you're using Passenger) or with your Mongrel config (or the like). I write app's that live on many environments (qa, stage, prod, admin, ci, dev, test, etc.) and have never once had an issue with RAILS_ENV. On Oct 15, 9:58 am, Mislav Marohnić

[Rails-core] Re: TestProcess updates for rendering text with a Proc

2009-04-05 Thread Andrew Bloom
I decided to write up a bit more of a description: http://www.somethingunimportant.com/2009/04/06/rails-bug-found-while-streaming-output-in-actioncontroller-tests/ On Apr 5, 1:19 pm, Andrew Bloom wrote: > I'm just trying to get people aware of my new patch. It's a very >

[Rails-core] [PATCH] TestProcess updates for rendering text with a Proc

2009-04-05 Thread Andrew Bloom
I'm just trying to get people aware of my new patch. It's a very simple update to TestProcess that allows testing of streaming output. Before my patch TestProcess tries to build an HTML::Document with the Proc instead of the captured output of the Proc. I've put this together against tags/2.3.2.1,

[Rails-core] Re: Last call for patches - 2.3 final is imminent

2009-03-09 Thread Andrew Bloom
This isn't a show stopper or a blocker, but it's really simple. http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2122-routing-with-a-blank-path_prefix-causes-a-bad-url-to-generate Any chance we could get it accepted? Thanks Andrew On Mar 9, 9:56 am, Johan Sørensen wrote: > On

[Rails-core] Re: Memoizable private instance methods

2009-03-05 Thread Andrew Bloom
I think the fact that the private status is lost when being memoized is misleading and confusing. Until reading this post I had no idea that was the case and would have assumed it respected the private keyword. Andrew On Mar 5, 12:53 pm, Niels Ganser wrote: > Hi all, > > what do you guys think

[Rails-core] Re: Routes are improperly generated with a blank :path_prefix

2009-03-05 Thread Andrew Bloom
Sent to quickly... This patch fixes the situation where the :path_prefix is a blank string, and simply ignores it as if it were nil. On Mar 5, 11:52 am, Andrew Bloom wrote: > Please see my write up > here:http://www.somethingunimportant.com/2009/03/04/get-my-patch-added-to-... > And

[Rails-core] [PATCH] Routes are improperly generated with a blank :path_prefix

2009-03-05 Thread Andrew Bloom
Please see my write up here: http://www.somethingunimportant.com/2009/03/04/get-my-patch-added-to-core/ And my ticket/patch here: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2122-routing-with-a-blank-path_prefix-causes-a-bad-url-to-generate#ticket-2122-3 Brief description:

[Rails-core] Re: rake db:create error:"Unknown database"

2008-07-04 Thread Andrew Bloom
I'm just curious why you find it to be a problem that it loads the environment? On Jul 2, 8:18 pm, Dave Rothlisberger <[EMAIL PROTECTED]> wrote: > If my code tries to access the database at "compile time", e.g. > defining methods based on values in a table, the rake db:create task > fails: > >