[Rails-core] Multiple templates and domains

2006-08-17 Thread Artin Safari
Hi everyone, Rails newbie here so forgive the question if the answer is ridiculously obvious. I am trying to write an app that meets the following requirements. I'd like to do it in Rails, but having pored over documentation for that past couple of days, don't even know whether it's feasible

Re: [Rails-core] Multiple templates and domains

2006-08-17 Thread Corey Donohoe
On 8/17/06, Artin Safari [EMAIL PROTECTED] wrote: Hi everyone, Rails newbie here so forgive the question if the answer is ridiculously obvious. I am trying to write an app that meets the following requirements. I'd like to do it in Rails, but having pored over documentation for that past

Re: [Rails-core] Multiple templates and domains

2006-08-17 Thread Josh Susser
On Aug 17, 2006, at 7:23 AM, Artin Safari wrote: Hi everyone, Rails newbie here so forgive the question if the answer is ridiculously obvious. Questions like these should be directed to the main Rails email discussion list at [EMAIL PROTECTED] The rails-core list is for discussion of

Re: [Rails-core] Multiple templates and domains

2006-08-17 Thread Artin Safari
Thanks for the reply. I've been suggested a couple of theme handling plugins for Rails, but I guess the main question I have is how would I handle the fact that multiple domains are involved and they all run on the same codebase. Obviously, I would have to set some variables depending on the

[Rails-core] Plugin Routes

2006-08-17 Thread Chris Abad
I have a plugin where I would like the route to be automatically included. I have previously used a method based on theme_support. My code can be found here: http://pastie.caboo.se/9026 This worked fine for a while... but there seems to have been some changes to routing in edge rails

RE: [Rails-core] Plugin Routes

2006-08-17 Thread Bob Silva
Have you tried RouteSet.add_named_route name, path, options ? Bob Silva http://i.nfectio.us/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Abad Sent: Thursday, August 17, 2006 10:08 AM To: rails-core@lists.rubyonrails.org Subject: [Rails-core]

Re: [Rails-core] Plugin Routes

2006-08-17 Thread Jamis Buck
You may want to take a look at the new routing implementation, too. The new RouteSet#draw does not yield self, it yields an instance of Mapper, which delegates to RouteSet. Thus, your custom methods need to be added on Mapper, not RouteSet. - Jamis Bob Silva wrote: Have you tried

[Rails-core] cache nils on eager has_one associations

2006-08-17 Thread Michael A. Schoen
Extends the change in [4721] to handle associations loaded eagerly. http://dev.rubyonrails.org/ticket/5787 ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

[Rails-core] Clean Functional Tests

2006-08-17 Thread Keith Morrison
Hi all, I'd like to gauge the interest for a patch before I add to the already large ticket list in Trac. I've created a small patch that cleans up functional tests. With this patch applied, functional tests can look just like unit tests. There is no need to open the controller class in

Re: [Rails-core] Clean Functional Tests

2006-08-17 Thread Francois Beausoleil
Hello Keith, 2006/8/17, Keith Morrison [EMAIL PROTECTED]: Comments, questions, suggestions? My tests are defined like this now: # test/functional/admin_controller_test.rb class UnauthenticatedAccessToAdminSectionTest Test::Unit::TestCase def setup @controller = AdminController.new