Displaying 3 results from an estimated 3 matches for "template_format".
2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each
email I send. For example, for my registration email I have a
registration.text.plain.erb file and a registration.text.html.erb file.
I want to use a layout for the html version of my emails. In my mailer
I put:
class AccountsMailer < ActionMailer::Base
layout ''email''
...
end
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
...", "action"=>"results", "controller"=>"search"}
NoMethodError (undefined method `to_sym'' for
{"6"=>"1"}:HashWithIndifferentAccess):
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:420:in
`template_format''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/base.rb:396:in
`pick_template_extension''
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1259:in
`template_exempt_from_layout?''
/usr/lib64/ruby/gems/1.8/gems/actionpac...
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
...record is created and that''s
all good, but I''m greeted with this monstrosity:
NoMethodError in RequestsController#create
undefined method `parameters'' for {:greeting=>"WAUW"}:Hash
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:301:in
`template_format''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_finder.rb:138:in
`pick_template_extension''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:68:in
`set_extension_and_file_name''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/...