Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
action mailer default template/location - DONT WANT
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frantisek Psotka  
View profile  
 More options Apr 14 2008, 10:57 am
From: Frantisek Psotka <rails-mailing-l...@andreas-s.net>
Date: Mon, 14 Apr 2008 16:57:22 +0200
Local: Mon, Apr 14 2008 10:57 am
Subject: action mailer default template/location - DONT WANT
hello

i want to specify my own location of actionmailer template. how can i do
this?

something like render would be perfect :)

thanks

fero
--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julian Leviston  
View profile  
 More options Apr 14 2008, 11:16 am
From: Julian Leviston <jul...@coretech.net.au>
Date: Tue, 15 Apr 2008 01:16:26 +1000
Local: Mon, Apr 14 2008 11:16 am
Subject: Re: [Rails] action mailer default template/location - DONT WANT
Actionmailer "views" can render partials. Probably best to use this  
approach.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)  
VIDEO #4 coming soon!
http://sensei.zenunit.com/

On 15/04/2008, at 12:57 AM, Frantisek Psotka wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frantisek Psotka  
View profile  
 More options Apr 14 2008, 3:06 pm
From: Frantisek Psotka <rails-mailing-l...@andreas-s.net>
Date: Mon, 14 Apr 2008 21:06:21 +0200
Local: Mon, Apr 14 2008 3:06 pm
Subject: Re: action mailer default template/location - DONT WANT
maybe you dont understand.

my mailer view looks like:
----------------------
<%= @body %>
----------------------

its a bit reduntant to have file with almost no meaning in a project,
but thats not problem, problem is that i want to specify where this
template should be (in a filesystem)

how can i force ActionMailer to search for view on another path ?

thanks again.

fero.

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frantisek Psotka  
View profile  
 More options Apr 15 2008, 11:31 am
From: Frantisek Psotka <rails-mailing-l...@andreas-s.net>
Date: Tue, 15 Apr 2008 17:31:40 +0200
Local: Tues, Apr 15 2008 11:31 am
Subject: Re: action mailer default template/location - DONT WANT
OK, after few days I discover:

When you in ActionMailer set @body variable, no template is needed...
through this you can render (with erb or...) email any way you want.

hope it helps.

--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »