Re: [Rails-core] Edge fails saving parent when has_many child ?

2006-03-08 Thread Duane Johnson
I've also come up to this oddity and I'd like to know the answer to the questions pose--is the author of the original code present, or an otherwise knowledgeable person who could answer? Duane Johnson (canadaduane) On Mar 6, 2006, at 10:06 AM, Francois Beausoleil wrote: Hi ! I

Re: [Rails-core] Changes to railties/lib/dispatcher.rb broke my app

2006-03-07 Thread Duane Johnson
On Mar 7, 2006, at 11:35 PM, Rick Olson wrote: On 3/8/06, Duane Johnson <[EMAIL PROTECTED]> wrote: I get the following for any page load at rev. 3814 on apache in production mode (but not lighttpd in dev mode, strangely): wrong number of arguments (2 for 3) /home/www/socialconference/

[Rails-core] Changes to railties/lib/dispatcher.rb broke my app

2006-03-07 Thread Duane Johnson
m. Rick, could this have to do with the fix for the white screen of death? Duane Johnson (canadaduane) http://blog.inquirylabs.com/ ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

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

2006-03-02 Thread Duane Johnson
I've got the same thing happening on each page load. -- Duane On Mar 2, 2006, at 12:57 PM, Kyle Maxwell wrote: I'm on revision 3745, and every few minutes, I have to restart Webrick. Trace follows: uninitialized class variable @@connection_cache_timeout in ActiveRecord::Base RAILS_ROO

[Rails-core] Nudge for #3246

2006-02-06 Thread Duane Johnson
#3246: RJS Templates need better replace semanticsJust checking up on this patch since the discussion around the net seems to conclude that it's a good thing.  Sam, is this patch soon to be accepted, or is there some hesitation? Duane Johnson(canadaduane)http://blog.inquirylab

Re: [Rails-core] Re: Location of Nested Controller Layout Files

2006-02-05 Thread Duane Johnson
example: public/javascripts/admin/ new.js, or public/stylesheets/admin/base.css. Of course, this only works with assets and resources that assume quite a bit about the app's controllers and views. Duane Johnson (canadaduane) http://blog.inquirylabs.com/ __

Re: [Rails-core] Nested validations

2006-01-27 Thread Duane Johnson
On Jan 27, 2006, at 9:03 AM, Norman Timmler wrote: Today i came to point where nested validation could make my code more DRY. My question is, if anything like this planed? Example: Maybe you only want to display different error messages if an attribute is blank or has the wrong format. va

Re: [Rails-core] How should we do away with the rubysess white page of death?

2006-01-27 Thread Duane Johnson
On Jan 26, 2006, at 2:42 PM, David Heinemeier Hansson wrote: Option #1: Add a "tmp" folder to the Rails app directory structure and store session files in "#{RAILS_ROOT}/tmp". If each app has its own tmp folder, we could instruct it do something like this inside of the Rails initializer:

Re: [Rails-core] How should we do away with the rubysess white page of death?

2006-01-26 Thread Duane Johnson
on'  task :clear_tmp => :environment do    # presuming RAILS_TMP is either defined by the user, or set by default:    # RAILS_TMP = File.join(RAILS_ROOT, 'tmp') unlessObject.const_defined?(:RAILS_TMP)    FileUtils.rm_r(RAILS_TMP)  end  desc 'Clean applica

[Rails-core] How should we do away with the rubysess white page of death?

2006-01-26 Thread Duane Johnson
ill be no conflict between rails appsb) Apps can benefit from the change immediately (no need to generate a UUID with railties)c) We'll finally have a place to put those pesky fastcgi socket filesd) Other plugins may benefit from a tmp/ folder, e.g. file_column?Ca

Re: [Rails-core] AssetTagHelper Enhancment

2006-01-16 Thread Duane Johnson
and then eval() it. I'm not sure if it's the best method. Anyway, how this impacts your patch and plugin, I'm not sure. I think it merely means that sequence doesn't matter for the javascript_include_tag method call. Regards, Duane Johnson (canadaduane) http://blog.inqui

Re: [Rails-core] AssetTagHelper Enhancment

2006-01-16 Thread Duane Johnson
On Jan 16, 2006, at 11:05 AM, DeLynn Berry wrote:I just created a Trac ticket with an Enhancement Patch to the AssetTagHelper, but figured I would post a note here as well to open up discussion of this addition (if any existed). Hey DeLynn,I'm curious about the implication of sequence in including

Re: [Rails-core] Re: redirect_to enhancements

2006-01-09 Thread Duane Johnson
alk about it sounds like that's the case. If you use :back because you can't remember request.env ['HTTP_REFERER'], and then find that your application redirects infinitely, you're going to have to pull the ugly details out and fix it anyway. Doesn't seem t

Re: [Rails-core] Re: redirect_to enhancements

2006-01-08 Thread Duane Johnson
_controller', :action => 'alt_action' redirect_to :referring_url, :controller => 'alternative_controller', :action => 'alt_action' redirect_back_otherwise :controller => ... sound better to me. I'd really like to see this in the core. Duane Johnson (c

[Rails-core] Gentle nudge for 1911

2006-01-07 Thread Duane Johnson
Here's a gentle nudge for ticket #1911 (more flexible fixtures). Can we get this integrated soon? Duane Johnson (canadaduane) http://blog.inquirylabs.com/ ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrail

Re: [Rails-core] understanding RAILS_ROOT

2006-01-04 Thread Duane Johnson
ards/ and you can see all the fixes working here http://fortytwo.merseine.nu/howards/news in case either of you are doubting thomases like i am. thanks for the great software - hopefully this info will help you. cheers. Wow, Ara. Thanks for the thorough treatment and resolution of the

Re: [Rails-core] understanding RAILS_ROOT

2006-01-04 Thread Duane Johnson
so, I wonder if Sebastian has any comment on implementation choices that he had to make. Duane Johnson (canadaduane) http://blog.inquirylabs.com/ ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

Re: [Rails-core] Can Rails render pages if there is no database connected?

2006-01-02 Thread Duane Johnson
ts stored in the session.  If such a thing existed, we could then test to make sure the session's APP ID matches the current APP ID.  Otherwise, bust an exception.I think the best place to put the unique APP ID would be in the railties code so a UUID is created whenever a new rails app is gene

[Rails-core] Re: [Rails] Can Rails render pages if there is no database connected?

2006-01-02 Thread Duane Johnson
This is from the rails mailing list: On Jan 1, 2006, at 4:00 PM, Duane Johnson wrote: I thought I knew the answer to this question ('yes'), however, recently I've been trying to build an app that detects whether or not the administrator has correctly configured the database.

Re: [Rails-core] Unable access which domain in my routes.rb to map custom route tables per domain

2006-01-02 Thread Duane Johnson
ng for advice on how to implement this feature into the Rails code base or would like some kind of peer review for your idea or code). I'll send a message to the rails list with my thoughts on this situation. Duane Johnson (canadaduane) http://blog.inquirylabs.com/ _

Re: [Rails-core] What's the status on flexible fixtures?

2005-12-20 Thread Duane Johnson
xibility is necessary for Engines also. Thanks, Duane Johnson (canadaduane) http://blog.inquirylabs.com/ ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

[Rails-core] What's the status on flexible fixtures?

2005-12-18 Thread Duane Johnson
the state of things are. Duane Johnson (canadaduane) ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

Re: [Rails-core] Defaults and alternate paths for view files

2005-12-13 Thread Duane Johnson
t would be a lot easier to implement. As you suggested, the above method would rely on some before_filter setting a cattr_attribute (such as :language) so that our base path could be configured on a per-request basis. Duane Johnson (canadaduane) ___

[Rails-core] Defaults and alternate paths for view files

2005-12-12 Thread Duane Johnson
I submitted a patch some time ago that I'd like some feedback on.  It seems like a good idea to me that we make an official way to provide alternate paths for view files.  A lot of hacks have cropped up that could be consolidated (e.g. the "Falling through to default templates" thread, engines, plu

Re: [Rails-core] #3005 - Prevent duplicate names

2005-12-07 Thread Duane Johnson
On Dec 7, 2005, at 2:23 PM, Francois Beausoleil wrote: So, we do in fact have to gobble up the class methods. Maybe this is an instance of Ruby being too helpful ? class RubyBeingTooHelpful; end instance = RubyBeingTooHelpful.new :) Sorry, couldn't resist. Duane ___

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

2005-12-07 Thread Duane Johnson
On Dec 7, 2005, at 12:45 PM, Rick Bradley wrote: * 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/:contr

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

2005-12-07 Thread Duane Johnson
lude it in the :host. Or else we can add another delimiter such as a pipe: map.connect 'proto://:host|:port/:controller/:action/:id' I'd rather this last option than combining the port in with :host. Combining them might cause difficulty when moving bet

Re: [Rails-core] #3005 - Prevent duplicate names

2005-12-07 Thread Duane Johnson
27;transaction', 'quote' have already been taken in models of class Game. You will have to rename your columns to not conflict with pre-existing method names. (ActiveRecord::ColumnNameAlreadyTaken) I didn't catch what was unlikable abou

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

2005-12-07 Thread Duane Johnson
mbol should be match against the host". In the example URLs above, the :host Regexp will be compared with "one.localhost" and "one.mydomain.com". I think it would be natural for most developers to prepend a '//' since it closely follows the URI format