I have a similar problem. How do I generate links in emails that work both on localhost and on the live server? Here''s an example email: Hello, You have a new e-pet. Please check the page at http://localhost:3000/pets/<%= @pet.id %> for more details. Salutations, ePets This works fine when I''m using localhost:3000 in development, but how can I make it so the link works on both the local server and the live server? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---