Res: [Rails] Re: Link in mails

Hi Valehru,

Didn’t work, got the following error

undefined method `url_for’ for #Notifier:0x44b11cc

Thanks
Ricardo

On 5/17/07, Valehru [email protected] wrote:

I am using the activeMailer. Wich is the best way to add links to


Ricardo A.
[email protected]
Acras Desenvolvimento de Sistemas
+55+41-3232-6404
www.acras.net


Ricardo A.
[email protected]
Acras Desenvolvimento de Sistemas
+55+41-3232-6404
www.acras.net

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 A. wrote:

On 5/17/07, Valehru [email protected] wrote:

+55+41-3232-6404www.acras.net
+55+41-3232-6404

Steve R.
[email protected]
http://www.calicowebdev.com