Displaying 20 results from an estimated 10000 matches similar to: "implicit template naming for multipart/alternative emails"
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running
fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a
major error when sending a confirmation email :
mailer.rb
class Mailer < ActionMailer::Base
....
# Renders a message with the corresponding layout
def render_message(method_name, body)
layout =
2010 Nov 04
0
Re: Train wreck getting render_to_string to work from foreign controller [SOLVED]
Just for collective knowledge as I have found no info on this problem
online:
I solved this by adding an .html.erb file for the "missing template", since
by design or bug Rails3 will not find or render another controllers view (in
my experience). Then in the new html.erb file, I just put <%= render
"comparisons/display" %> because the views *are* able to find templates
2006 Jul 20
2
Why is my rxml view being wrapped by the rhtml template in views/layouts?
Why is my rxml view being wrapped by the rhtml template in views/
layouts?
I was experimenting with REST, I had a nice little test program with
one table: ''resources''. Here''s what the show method looks like:
def show
@resource = Resource.find(params[:id])
respond_to do |accepts|
accepts.html
accepts.xml
end
end
I have a show.rhtml
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format.
By default my application is using forgot_password_en.rhtml template.
I read in the ROR Recipes book
"ActionMailer sees these templates, recognizes the pattern in their
file names, and automatically sets the MIME type of the message to
multipart/alternative and adds
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just
straight HTML, I only used the form helpers for the form tag as so:
--
<%= form_tag({:action => :send_request}, {:method=>:post,
:name=>''childsplay''})%>
--
In my page controller I have this:
--
def send_request
email = InfoMailer::deliver_sendrequest(params)
end
---
in my action mailer class I
2006 May 24
1
ActionMailer (Action Mailer) Template not found? Help!!
I have been going around on the Internet about this all day and found
absolutely nothing that seems to fit this problem.
I have a mailer named "Notifier" -- in fact I have been using the EXACT
code from the "Agile Development With Rails" chapter on "Sending
E-Mail", pp. 411-416, except for my names (mailer named "Notifier",
emailer method named
2006 Feb 02
1
actionmailer - No rhtml, rxml, or delegate template
I''m getting this error when I try to send an email.
No rhtml, rxml, or delegate template found for signup_thanks
But I do have signup_thanks.rhtml in app/view/notifier
This is in the notifier model.
class Notifier < ActionMailer::Base
def signup_thanks(sent_at = Time.now)
@subject = "the subject works!"
@body["first_name"] = "first name"
2006 Jun 08
1
No rhtml, rxml, or delegate template found
hi ,
i''m having a problem with rendering a partial , the partial is in the
apps/view/polls folder with the name : _antwoorden_user.rhtml
in the view i''m rendering it with
<% if @user %>
<%= render :partial => ''polls/antwoorden_user'', :locals => {:poll =>
@poll, :user => @user} %>
<% else %>
....
gives me the error =>
No
2005 Nov 30
0
How to select between RXML and RHTML template at runtime ?
Hi !
I have some actions which I'd like to serve using XML instead of HTML.
I have two action templates: action.rhtml and action.rxml. If I do
render :action => 'action', ActionPack automatically selects the RHTML
template.
Is there a programmatic way of selecting which template I'd like to use ?
Thanks !
--
François Beausoleil
http://blog.teksol.info/
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem:
1. ERB and Builder template engines are heavily wired in ActionView::Base
2. Should be optional. If we use different engine - why load all their
stuff if not needed?
3. There are template engines which expect files in their own locations
and cache them in their own way. For instance a template engine may
store templates in a database. These engines don''t need any central
source
2006 Nov 07
0
rxml template accidentally rendered within html layout
Hi,
I have the following in my controller:
def show
@quest = Quest.find(params[:id])
respond_to do |format|
format.html
format.xml
end
end
And in my routes:
map.resources :quests
I have two views for this action, quests/show.rhtml and
quests/show.rxml. Now what I would expect as a response to
''/quests/1.xml'' is that Rails sends, as XML, the rendered rxml
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like
ActionView cant find my template. same code works as a rake task.
here my worker:
class StatusMailWorker < BackgrounDRb::Rails
repeat 1.minutes # <-- hehe!
def do_work(args)
[...blah...]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
No
2007 Sep 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2005 Oct 02
1
rendering if template exists
Hi folks,
I have a component on my site called RelatedController. I intend to
put some links and content related with the current page (controller
and action). What I want to do is for the time being is
render :partial "#{@current_controller}_#{@current_action}"
Then in the component template root I have templates like
_products_index _products_cart etc. I have decided to put
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier versions of Rails ActionMailer used to implicitly send
multipart (text/plain and text/html) email messages for me, but it
looks like now it''s sending two text/plain parts.
Simplified details:
Here''s my model:
class Notifications < ActionMailer::Base
def confirmation(sent_at = Time.now)
@subject = ''Thank you for registering''
@body
2008 Mar 04
2
Action Mailer throwing underscores on template name
I''ve recently run into a problem with one of my applications that
refuses to send emails using ActionMailer.
Looking at the log, it become obvious what''s happening, the system is
looking for templates with underscores at the end. Notice the
exception_notification_ .
For example:
ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template
found for
2006 May 30
2
No rhtml, rxml, rjs... problem with Action Mailer, again
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
2005 Dec 21
2
Missing error page templates
Whenever I get any errors on my application, I don''t get the regular
rails error page with all the debugging information. What could''ve
cause this? This is from the logs:
ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template
found for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/template_error.rhtml):
2006 Sep 26
0
Is it possible to render RXML partials in RHTML templates?
I have a RHTML template and I would like the output of a RXML partial to
be embedded within it.
When I do <%= render(:partial => ''list_edit'') %> where there exists a
_list_edit.rmxl file, I get XML parsing errors in the browser - I
believe because the partial is causing the rendered content to be
identified as XML instead of HTML.
Is there any way to
2006 Jul 05
0
MasterView rails-optimized (x)html friendly template engine - Release 0.2.3
MasterView is a rails-optimized (x)html friendly template engine plugin that
provides another option to the existing rails view templates (rhtml and
rxml). The main idea is to provide a template engine that would provide all
the power of layouts, partials, and rails helpers but still be
editable/styleable in a WYSIWYG editor. It was also a major goal that the
syntax of these attribute directives