Re: [Rails-core] The old deal with url_for in Mailer

2006-06-05 Thread Pete Yandell
ould be the case if you need to generate links to more than one host.) If my somewhat limited understanding of the internals of Rails routing means I've suggested something dumb above, please feel free to straighten me out. :) Pete Yandell http://9cays.com/ This is the code I cur

Re: [Rails-core] Configuration of libraries and model classes

2006-04-03 Thread Pete Yandell
Let me sharpen up my first question, because I think it's essential no matter how you approach this: If I have a class that includes Reloadable, how can I declare a class variable (or equivalent thereof) that persists across reloads of the class? Cheers, Pete Ya

Re: [Rails-core] Configuration of libraries and model classes

2006-04-03 Thread Pete Yandell
1:17 PM, Jeff Lindsay wrote: This sort of functionality comes with Rails Engines. Check it out, it's pretty similar. -jeff On 4/3/06, Pete Yandell <[EMAIL PROTECTED]> wrote: A lot of the built-in Rails classes have configuration options that can be set in environment.rb, but there do

[Rails-core] Configuration of libraries and model classes

2006-04-03 Thread Pete Yandell
nly so that you know where to look for configuration when using third-party code. 3) What do people think of the API approach I've suggested? I'm trying to make it as simple as possible, not force you to manually define a separate class or module just to hold configuration, but

Re: [Rails-core] Help needed from eager loading enthusiasts

2006-02-22 Thread Pete Yandell
Does this tie in with http://dev.rubyonrails.org/ticket/1562 which allows including multiple associations that reference a single table, but (AFAIK) isn't compatible with edge rails? If this doesn't solve the same problem as 1562, would this make solving it easier? On 22/02/2006, at 8:30 AM

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

2006-02-12 Thread Pete Yandell
body does implement any of this as a plugin, I'd definitely give it a go in our production code. Cheers, Pete Yandell ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core