[Radiant] Adding an e-mail form

Scott Walter tx_scottwalter at yahoo.com
Wed Jul 26 09:13:37 CDT 2006


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 <jeroen at laika.nl>
To: radiant at lists.radiantcms.org
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


-------------------------------------------------------------------------------
jeroen at laika.nl | www.laika.nl | +31(0)20 612 76 45
Pazzanistraat 17 | 1014 DB | Amsterdam | The Netherlands
-------------------------------------------------------------------------------



 

_______________________________________________
Radiant mailing list
Radiant at lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060726/585166ae/attachment.html


More information about the Radiant mailing list