Im wondering on how to approach this. For simplicity lets say I submit a link from a website through javascript to my rails server. I want my rails server to create a page based off that link and pull out the logo from that page. Right now I have the code to find a logo off a webpage but not sure how I can link the two together.
My controller takes in the json post request and saves a page object but how would I know ask it to run my js and save that image location in the page object as well?
Any help would be great thanks!