title: Very simple rest webservice on ruby on rails
body: <p>I am trying to implement very-very simple webservice to practice with my iphone application, for example storing geolocation data and retrieving it from web. I started with Ruby on Rails, read some books and install it on my pc. </p>
  
  <p>I install Ruby installer for Windows, then</p>
  
  <pre><code>gem update --system
  gem source -a http://gemcutter.org
  gem install rails 
  *then I install sqlite3*
  gem install sqlite3-ruby
  *and I even install webservice gem* 
  </code></pre>
  
  <p>All working fine and I wrote some simple applications and can access it all on <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a>. Then I saw this video - <a href="http://www.youtube.com/watch?v=J6r_l3cAS9s" rel="nofollow">http://www.youtube.com/watch?v=J6r_l3cAS9s</a> in which you can see simple restful webservice. As I understand there are no any additional configuration to apps to be a simple webservice. I did exactly what show in this movie and install Fiddler and another rest test client to test this service. I cant get any xml from my app. Fiddler get me my html from <a href="http://localhost:3000/words" rel="nofollow">http://localhost:3000/words</a> and this rest client <a href="http://code.google.com/p/rest-client/" rel="nofollow">http://code.google.com/p/rest-client/</a> get my again my html page with content type text/html. How can I get XML to start working with this app as webservice? </p>
  
  <p>I use Rails 3</p>