Thx again, Starr.

The thing is, I already have the line:

include ActionController::UrlWriter

in the module. And get the error.

And I don't think I can just put the 'default_url_options' line in
there...isn't that an ActionMailer options hash?

Or am I missing it completely as to where to put these lines?


On Mar 4, 9:43 am, Starr Horne <st...@chatspring.com> wrote:
> > One more detail that might give a clue: The emails are generated from
> > a rake task (invoked by a cron job) rather than from some use action
> > on the site. I dont think that makes a difference, but, maybe...?
>
> Named routes aren't accessible by default in the console, and I imagine they 
> aren't in your rake task, either.
>
> Here's instructions on how to include them:
>
> http://stuartsierra.com/2008/01/08/testing-named-routes-in-the-rails-...
>
> --
> Starr Horne
> My blog:http://starrhorne.com
> Check out my Helpdesk RailsKit:http://railskits.com/helpdesk/
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to