Frantisek Psotka
2008-Apr-14 14:57 UTC
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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2008-Apr-14 15:16 UTC
Re: 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:> > 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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frantisek Psotka
2008-Apr-14 19:06 UTC
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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frantisek Psotka
2008-Apr-15 15:31 UTC
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. Frantisek Psotka wrote:> 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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---