Thread View: pl.comp.lang.ruby
2 messages
2 total messages
Started by Jaroslaw Zabiello
Thu, 06 Jul 2006 15:31
ActionMailer - problemy
Author: Jaroslaw Zabiello
Date: Thu, 06 Jul 2006 15:31
Date: Thu, 06 Jul 2006 15:31
25 lines
1302 bytes
1302 bytes
Mam kontroler:
class ContactController < ApplicationController
def sent
puts '#' * 60
email = QuoteMailer.create_sent()
puts '#' * 60
p email
puts '#' * 60
render :text => 'hello'
end
end
Pierwsza linijka haszow sie wyswietla. Potem do browsera sypie mi
wyjatkiem:
ActionView::ActionViewError in ContactController#sent
No rhtml, rxml, rjs or delegate template found for sent
Problem w tym, ze posiadam plik
app/views/quote_mailer/sent.rhtml (ze statyczna trescia)
Gdzie ten mailer szuka szablonu??
--
Jarosław Zabiełło
http://blog.zabiello.com
Re: ActionMailer - problemy
Author: Szymon Bęczkowski
Date: Thu, 06 Jul 2006 19:02
Date: Thu, 06 Jul 2006 19:02
5 lines
839 bytes
839 bytes
Może w klasie QuoteMailer w sent dopisz linijkę: render :file => "/app/views/quote_mailer/sent.rhtml" -- Szymon Bęczkowski
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads