Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How do I embed an internal routes/show page on to an external website?

Javascript • Asked by Arjun Rajkumar
Hey all, 

I've seen websites where you place some Javascript code - and they are able to display information from another website on their website. Wondering how I can do the same? I have a page which displays a map of a user with some other details. Any idea how I can embed this same page on an external website which shows the same map?



Since most of it is done using Javascript, you could technically copy the code from any example you have. 
As for the Rails part, you likely need to get `get` the Json for the user. Also CORS is something to keep in mind. 
I've build a couple of JS snippets/embeds. Happy to help with any specific issues.

Thanks will try over the weekend and get back if any doubts. 

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.