[Radiant] Can't get the mailer behavior to work
Jonathan Métillon
jmetillon at gmail.com
Mon Nov 20 04:48:20 CST 2006
Hi Radiant list people, I'm new here!
First I have to say I was looking for a Rails CMS and I first tried
Mephisto: it tries do a lot more like media buckets and things but
it's a real pain in the ass to setup and to use. Then I tried Radiant,
damn this is the real CMS man :-) Love it.
But now I need a contact form. I installed the Mailer behavior from
Elucidata. Here is my Contact page:
*body* (borrowed from M@ McCray)
<r:mailer:form name="contact">
*Name:* <r:mailer:text name="name" /><br/>
*City:* <r:mailer:text name="city" /><br/>
*Email:* <r:mailer:text name="email" /><br/>
<r:mailer:submit />
</r:mailer:form>
*config*
mailers:
contact:
subject: Contact depuis le site
from: noreply at example.com
redirect_to: /contact/merci
recipients:
- johnnyboy at example.com
And here's what happen in my production.log:
Processing SiteController#show_page (for 82.248.120.85 at 2006-11-20
11:34:02) [POST]
Parameters: {"mailer"=>{"city"=>"My City", "name"=>"My Name",
"email"=>"mikymike at example.com"}, "action"=>"show_page",
"url"=>["contact"], "mailer_name"=>"contact", "controller"=>"site"}
'):umentError (syntax error on line 3, col 11: ` from: noreply at example.com
/usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
/usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.2/lib/../app/models/behavior.rb:80:in
`page_config'
/vendor/plugins/radiant_mailer_behavior/lib/mailer_behavior.rb:28:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.2/lib/../lib/advanced_delegation.rb:10:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.2/lib/../lib/advanced_delegation.rb:10:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.2/lib/../app/controllers/site_controller.rb:36:in
`show_uncached_page'
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.5.2/lib/../app/controllers/site_controller.rb:22:in
`show_page'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in
`perform_action_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in
`perform_action_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in
`perform_action'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in
`process_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in
`process_without_session_management_support'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in
`process_request'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in
`process!'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in
`process!'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in
`process!'
/var/www/john/rubynails/current/public/dispatch.fcgi:24
How can I fix that ? Thank you!
Jonathan
--
« Why shouldn't a PC work like a refrigerator or a toaster? » --Walter Mossberg
More information about the Radiant
mailing list