On 5-jun-2006, at 19:06, Jamis Buck wrote:
On Jun 5, 2006, at 10:32 AM, Julian 'Julik' Tarkhanov wrote:
On the subject of http://dev.rubyonrails.org/ticket/1138
As we are now revamping the routing, maybe it might be sensible to
create a decoupled url_for that only depends on the Routes and
bails if no routes have been defined? I'd say the inability to use
url_for in the Mailer is more of an annoying coupling problem than
a roadblock. There should be a way to generate URLs without a
controller.
I agree. However, when people use a Mailer within the context of a
request, they typically expect url_for to operate like it does in a
view--that is, to reuse request parameters.
Are you certain about that? I for one expect the opposite - that it
would be an "absolute" URL. However I understand where it's headed
(for instance your apps would love to preserve the subdomain when
sending mails). Will investigate.
--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core