I've decided to have a quick go of Ruby, try it out - etc. Most of the tutorials about setting up seem to be very unix/linux orientated and I've not found many straight-forward Windows systems.
The closest I've found is on this site:
I've done everything it says, but I'm confused at the bottom, it says that:
But as far as I recall Windows doesn't use .htaccess so what is the point of writing one? Also, it refers to a public folder inside Rails applications, but I don't understand what this means?Configure your Rails app
Go to the public folder in your Rails application and open .htaccess
Look for the rewrite rule:
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
and change it to:
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
I don't want to over-write my apache settings or re-direct document root or serverroot, but I did add a virtual host like it says; plus I created a folder in my htdocs folders called "ruby"
The "ruby" folder on my htdocs is where I want all my ruby web work to go. I placed a "helloworld.rb" in there and went to localhost/ruby/helloworld.rb but all it does is display the code.
The helloworld.rb file contains;
Maybe I'm not getting the point, or I'm missing something - but why can't I just put the code into the ruby folder and let apache do the rest of the work?Code:puts 'hello world'