My ruby on rails knowledge is gaining (i’m reading tutorials and books) but I have a problem grasping one element of Ruby and Ruby on Rails, concerning my domain web page and web services.
Some background:
I have a web page I’m creating in dreamweaver which I ftp to my web domain. My design is to have my web page look like a blogging website, where I post a single picture up at a time for people to view. I want to have it set up that every time I upload an image to my domain, ruby gets the html of that, and every specific image of this nature, and throws it to a web service for people who use windows phone 7 to have update in an app I am making.
My question stems from a lack of Ruby knowledge. I don’t want to make my webpage some gigantic ruby application, but instead I just want Ruby to know when I place an image, to get the html link, and to send that information out.
Does ruby identify this automatically? Do I have to run my server for the changes to be found by ruby and to send them out?
I want to send the image url through either XML or Json, and am in dire need of sample code to get this accomplished.
Your situation sounds like a perfect use case for RSS. There are many ways to set up an RSS feed and each one will depend on how your current site is set up.