Whenever one of the email programs fires, if the body contains something like link_to root_url, it gives this incredibly useless error:
ActionView::Template::Error: No route matches {}
Tracing is either useless or points to this method link_to. Since it is also very incomprehensible here, I ask about stack overflow.
UPDATE 1: To help, I sent a terrible routes.rbfile: https://gist.github.com/2955610
UPDATE 2: The console app.root_urlreturns the correct result.
UPDATE 3: link_to "whatever", root_url works fine. So strange!
UPDATE 4: It works fine in normal rail viewing mode.
UPDATE 5: FIXED. image_tagno longer provides the host in a letter that displays: http://assets/...png. FFFFF.
UPDATE 6: I narrowed it down to getting the same error from (in the console) app.url_for. I think this may be related.
source
share