Where are you putting the route? Is it at the end? If so you’re
getting tripped up by:
Site URLs
map.with_options(:controller => ‘site’) do |site|
site.homepage ‘’, :action
=> ‘show_page’, :url => ‘/’
site.not_found ‘error/404’, :action
=> ‘not_found’
site.error ‘error/500’, :action
=> ‘error’
# Everything else
site.connect '*url', :action
=> ‘show_page’
end
This Radiant route pretty much handles everything. If you notice in
routes.rb all the admin routes are above this one. Try putting your
route above it to see what happens.
cheers,
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 J. [email protected]
To: [email protected]
Sent: Wednesday, July 26, 2006 5:29:47 AM
Subject: [Radiant] Adding an e-mail form
I have to add a simple contact e-mail form to a Radiant based website.
Unfortunately the mailer behaviour doesn’t seem to work anymore with the
latest version of Radiant.
Because I don’t have the time (or skill level) to fix mailer behaviour
or make a proper behaviour myself I’m trying to make my own form in
Rails and add a custom route to this page. Sounds simple enoguh, but I’m
stuck at the route part.
Something like this should work, right? Or am I missing something?
map.connect ‘contact’, :controller => “info_mailer”, :action => ‘show’
I just get a regular Radiant page not find error, so I guess I’m doing
something wrong.
Can someone point me in the right direction, or, even better has anyone
implemented a simple contact e-mail form or does anyone know how to fix
mailer behaviour?
–
Jeroen