Are there any valid uses for *_path in an email? Can you do reference links with ID elements in an email? We could make it configurable. Default it to non-hair-pulling behavior, but allow anyone with a legitimate `*_path` use to preserve functionality.
``` config.action_mailer.path_helper_behavior = :raise config.action_mailer.path_helper_behavior = :url config.action_mailer.path_helper_behavior = :make_me_lose_users_or_money # i.e. current behavior ``` -- Richard Schneeman On Thu, Jun 12, 2014 at 2:31 PM, Xavier Noria <[email protected]> wrote: > On Thu, Jun 12, 2014 at 8:07 PM, Florian Thomas <[email protected]> > wrote: > > I’m in support of this as well. >> As a solution i would prefer to resolve the full URL by default. Raising >> an exception seems to me a bit like rails telling the programmer „I know >> what you’re intending, and we both know the solution but you have to fix it >> on your own." >> > > Breaking the strong expectation that *_path generates a path is dubious to > me. Too clever, the API is kind of cheating in my mind. > > I've been thinking about it and my only conclusion by now is that we agree > there's something to do here, but see cons in all proposals so far :). > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
