Hi, I am using the activeMailer. Wich is the best way to add links to actions in my RoR app into the mail content? I didn''t get link-to to work. Thanks -- Ricardo Acras ricardo-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org Acras Desenvolvimento de Sistemas +55+41-3232-6404 www.acras.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<%= link_to "Register", :controller=>"account", :action=>"register" %> use link_to not link-to On May 18, 3:34 am, "Ricardo Acras" <ricardo.ac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I am using the activeMailer. Wich is the best way to add links to > actions in my RoR app into the mail content? I didn''t get link-to to > work. > > Thanks > > -- > Ricardo Acras > rica...-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org > Acras Desenvolvimento de Sistemas > +55+41-3232-6404www.acras.net--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Valehru, Didn''t work, got the following error undefined method `url_for'' for #<Notifier:0x44b11cc> Thanks Ricardo On 5/17/07, Valehru <clarke.jonathan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > <%= link_to "Register", :controller=>"account", :action=>"register" %> > > use link_to not link-to > > > On May 18, 3:34 am, "Ricardo Acras" <ricardo.ac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > I am using the activeMailer. Wich is the best way to add links to > > actions in my RoR app into the mail content? I didn''t get link-to to > > work. > > > > Thanks > > > > -- > > Ricardo Acras > > rica...-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org > > Acras Desenvolvimento de Sistemas > > +55+41-3232-6404www.acras.net > > > > >-- Ricardo Acras ricardo-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org Acras Desenvolvimento de Sistemas +55+41-3232-6404 www.acras.net -- Ricardo Acras ricardo-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org Acras Desenvolvimento de Sistemas +55+41-3232-6404 www.acras.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Don''t do either. Pass your url in from the controller. Only the controller will have the proper context for the URL helpers to evaluate a correct path. So, for example: Notifier.deliver_thank_you(url_for(:controller => ''user'', :action => ''thanks_for_signing_up'')) On May 20, 2007, at 6:13 PM, Ricardo Acras wrote:> > Hi Valehru, > > Didn''t work, got the following error > > undefined method `url_for'' for #<Notifier:0x44b11cc> > > Thanks > Ricardo > > On 5/17/07, Valehru <clarke.jonathan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> <%= link_to >> "Register", :controller=>"account", :action=>"register" %> >> >> use link_to not link-to >> >> >> On May 18, 3:34 am, "Ricardo Acras" <ricardo.ac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Hi, >>> >>> I am using the activeMailer. Wich is the best way to add links to >>> actions in my RoR app into the mail content? I didn''t get link-to to >>> work. >>> >>> Thanks >>> >>> -- >>> Ricardo Acras >>> rica...-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org >>> Acras Desenvolvimento de Sistemas >>> +55+41-3232-6404www.acras.net >> >> >>> >> > > > -- > Ricardo Acras > ricardo-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org > Acras Desenvolvimento de Sistemas > +55+41-3232-6404 > www.acras.net > > > -- > Ricardo Acras > ricardo-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org > Acras Desenvolvimento de Sistemas > +55+41-3232-6404 > www.acras.net > > >Steve Ross sross-ju+vs0qJmyeQKKlA4PA9hA@public.gmane.org http://www.calicowebdev.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 -~----------~----~----~----~------~----~------~--~---