Hi all I have seen a lot of people writing my same problem but I haven't found the solution yet. This is the problem: "ActionView::ActionViewError in Periodico#index No rhtml, rxml, rjs or delegate template found for..." when trying to send email through action mailer. I have created the Notifier.rb model (in app/models/ folder) def signupthanks(user) # Email header info MUST be added here @recipients = user.email @from = "firstname.lastname@example.org" @subject = "Thank you for registering with our website" # Email body substitutions go here @body["first_name"] = user end I call it: email=Notifier::deliver_signupthanks(@user) (in my controller) And I have saved (trying with different nouns) a plain text file called signupthanks.rhtml in the /app/views/notifier/ folder. I'm sure it is just there. I have also set the normal settings for config/environment.rb directory. Everything seems to be OK? I have read that this can be an Action Mailer versions' problem, a bug with smtp function, or a different problem. But nothing seems to work! Can you help me? David
on 2006-05-30 18:22
on 2006-06-28 11:39
atreyu a. wrote: > No rhtml, rxml, rjs or delegate template found for..." I had the same problem. I commented out a line in a block "Rails::Initializer.run do |config|" in app/config/environment.rb: config.frameworks -= [ :action_web_service :action_mailer ] to # config.frameworks -= [ :action_web_service :action_mailer ] , then it worked.
on 2006-06-28 18:32
On 28/06/06, matzun <email@example.com> wrote: > config.frameworks -= [ :action_web_service :action_mailer ] That line of Ruby *removes* AWS and AM from the frameworks rails loads. You could either comment it out, or simply remove :action_mailer from it, should you want to still NOT load AWS (and thus save on memory).