You're right it doesn't work!  I'm not a routes guru, but I got it to work with this:

  map.with_options(:controller => 'info_mailer') do |contact|
      contact.show         'contact/show', :action ="" 'show'
  end

Then I had to edit the info_mailer controller to disable authentication check as well as set the layout otherwise you will get the Radiant admin layout:

class InfoMailerController < ApplicationController
  no_login_required
  layout "mylayout"
 
  def show
  end
end

Then I can go to localhost:3000/contact/show

scott.


 
----------------------------------------------------------------------------------------------------
What's an Intel chip doing in a Mac? A whole lor more that it's ever done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
Snippets - http://snippets.scottwalter.com


----- Original Message ----
From: Jeroen Janssen <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, July 26, 2006 8:38:56 AM
Subject: Re: [Radiant] Adding an e-mail form

On Jul 26, 2006, at 3:14 PM, Scott Walter wrote:
Where are you putting the route?  Is it at the end?  If so you're getting tripped up by:

It the very first route...

--
Jeroen Janssen
Laika online entertainment

-------------------------------------------------------------------------------
[EMAIL PROTECTED] | www.laika.nl | +31(0)20 612 76 45
Pazzanistraat 17 | 1014 DB | Amsterdam | The Netherlands
-------------------------------------------------------------------------------



_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to