Thanks, that was exactly what i was looking for, i had absolutly no idea what was causing it.
On Feb 26, 6:57 pm, Shane Mingins <[email protected]> wrote: > On Thu, Feb 26, 2009 at 10:48 PM, elk_ <[email protected]> wrote: > > > Hi, i have a mailer template that looks like this: > > > A new message has been posted to <%= @topic.to_s %>: > > > <%= topic_post_url(@post) %> > > > Manage your subscriptions here: <%= subscriptions_url %> > > > And that works fine in my local app. When i only use <%= @topic.to_s > > %> it works ok in Heroku and i recieve the mail fin, but the problem > > is when i try with the links i get a 500 error. > > You haven't said why you get a 500 error. Guessing that the url in > the email is b0rked as the host is incorrect. > > IIRC you need to set the correct url host for your environment. > > E.g. I have this in my production.rb > > ActionController::UrlWriter.default_url_options[:host] = 'www.myapp.com' > > HTH > Shane > > -- > Shane Mingins --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
