Hi, I''m trying to include a partial in an email template but it throws me this: undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #12): 11: 12: <%= render :partial => ''footer'' %> I guess email views are a little different from normal ones as they don''t seem to have a access to a proper controller (?) is there a quick way around this? Jeroen
Agnieszka Figiel
2006-Mar-22 14:34 UTC
[Rails] Re: render partial from withit mail template
Jeroen Houben wrote:> Hi, > > I''m trying to include a partial in an email template but it throws me > this: > > undefined method `controller_path'' for SupportMailer:Class > > Extracted source (around line #12): > > 11: > 12: <%= render :partial => ''footer'' %> > > I guess email views are a little different from normal ones as they > don''t seem to have a access to a proper controller (?) > > is there a quick way around this? > > Jeroentry ''../controller/template'' -- Agnieszka Figiel -- Posted via http://www.ruby-forum.com/.
Agnieszka Figiel wrote:> Jeroen Houben wrote: >> Hi, >> >> I''m trying to include a partial in an email template but it throws me >> this: >> >> undefined method `controller_path'' for SupportMailer:Class >> >> Extracted source (around line #12): >> >> 11: >> 12: <%= render :partial => ''footer'' %> >> >> I guess email views are a little different from normal ones as they >> don''t seem to have a access to a proper controller (?) >> >> is there a quick way around this? >> >> Jeroen > > try ''../controller/template'' >But what if the footer is in /views/support_mailer ?
Jeroen Houben wrote:> Agnieszka Figiel wrote: >> Jeroen Houben wrote: >>> Hi, >>> >>> I''m trying to include a partial in an email template but it throws me >>> this: >>> >>> undefined method `controller_path'' for SupportMailer:Class >>> >>> Extracted source (around line #12): >>> >>> 11: >>> 12: <%= render :partial => ''footer'' %> >>> >>> I guess email views are a little different from normal ones as they >>> don''t seem to have a access to a proper controller (?) >>> >>> is there a quick way around this? >>> >>> Jeroen >> >> try ''../controller/template'' >> > > But what if the footer is in /views/support_mailer ?Ah this seems to do the trick: <%= render :partial => "./footer" %> Jeroen
Stephen Bannasch
2006-Mar-22 17:11 UTC
[Rails] maillist problem: can''t get my own mail from list, using gmail
I''ve set my mailman prefs so I should be receiving my own mail from the maillist however it doesn''t come through. I am using gmail and getting my mail with a POP client. Has anybody else had this problem? -- - Stephen Bannasch Concord Consortium, http://www.concord.org
Stephen Bannasch
2006-Mar-22 17:12 UTC
[Rails] searching for existing tickets on RoR Trac?
On this page: http://dev.rubyonrails.org/newticket theres is a very good suggestion that I see if the bug I am reporting is already described and ''Use the search to look for keywords or investigate the lists.''. However I can''t easily find a way to do this on this page or on the pages this page links to. I have a feeling this is a stupid question and I must be missing something obvious ... hmmm. Would be nice to have either a search field or a link to a search on this page. -- - Stephen Bannasch Concord Consortium, http://www.concord.org
Alex Young
2006-Mar-22 17:20 UTC
[Rails] maillist problem: can''t get my own mail from list, using gmail
Stephen Bannasch wrote:> I''ve set my mailman prefs so I should be receiving my own mail from the > maillist however it doesn''t come through. I am using gmail and getting > my mail with a POP client. Has anybody else had this problem?Allegedly Gmail filters your own posts to mailing lists itself. I don''t use it myself, so I can''t comment further... -- Alex
Ian Harding
2006-Mar-22 18:51 UTC
[Rails] maillist problem: can''t get my own mail from list, using gmail
On 3/22/06, Alex Young <alex@blackkettle.org> wrote:> Stephen Bannasch wrote: > > I''ve set my mailman prefs so I should be receiving my own mail from the > > maillist however it doesn''t come through. I am using gmail and getting > > my mail with a POP client. Has anybody else had this problem? > Allegedly Gmail filters your own posts to mailing lists itself. I don''t > use it myself, so I can''t comment further... >In my experience, it "archives" your own posts. That is, they don''t show up in your inbox, but they are there.
James Ludlow
2006-Mar-22 18:57 UTC
[Rails] maillist problem: can''t get my own mail from list, using gmail
On 3/22/06, Stephen Bannasch <stephen.bannasch@gmail.com> wrote:> I''ve set my mailman prefs so I should be receiving my own mail from > the maillist however it doesn''t come through. I am using gmail and > getting my mail with a POP client. Has anybody else had this problem?It''s coming back, and then Gmail "helps" you by deleting the copy. Google thinks this is a feature. http://tinyurl.com/njns7 -- James
you can hit the url directly at http://dev.rubyonrails.org/search On 3/22/06, Stephen Bannasch <stephen.bannasch@gmail.com> wrote:> > On this page: http://dev.rubyonrails.org/newticket theres is a very > good suggestion that I see if the bug I am reporting is already > described and ''Use the search to look for keywords or investigate the > lists.''. > > However I can''t easily find a way to do this on this page or on the > pages this page links to. > > I have a feeling this is a stupid question and I must be missing > something obvious ... hmmm. > > Would be nice to have either a search field or a link to a search on this > page. > > -- > - Stephen Bannasch > Concord Consortium, http://www.concord.org > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060324/812e890e/attachment-0001.html