Thanks, but yeah, it doesn't know about the "request"
method, so I can't get at request.protocol or
request.host.
Do you all just punt at this point and hardwire it in?
Anyone who is using restful authentication, how do you
set @body[:url] in <user>_notifier.rb (where "user" is
whatever you call your user account model)?
-glenn
Chris Abad wrote:
Oops, one quick change... looks like URL for takes both a :host and
:protocol option. If you want to pass both, it'd be like this:
link_to :controller => 'mycontroller', :action => 'myaction', :host =>
request.host, :protocol => request.protocol
On Jun 26, 2007, at 3:00 PM, Chris Abad wrote:
Yea, if this is actually a controller that inherits from
ApplicationController you should be able to do something like this:
link_to :controller => 'mycontroller', :action => 'myaction', :host =>
(request.protocol + request.host)
If that doesn't work, your issue is probably that those methods aren't
available to ActionMailer::Base. I didn't check myself so I'm not sure.
------------------------------------------------------------------------
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby