tag:blogger.com,1999:blog-118625342009-02-21T12:28:43.761ZCodeCityThis is the blog of Ben Smith, and mostly details my learning of Ruby on Rails.Benhttp://www.blogger.com/profile/13843629164123629043noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-11862534.post-1112402513701374382005-04-02T02:29:00.000+01:002005-04-02T02:01:00.820+01:00Part 1: InstallationJust to infuriate <a href="http://www.loudthinking.com/arc/000433.html">some people</a>, these instructions are for a) people as thick as myself, b) windows users. Who said Ruby was elitist?<br /><br />a) Download the <a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl">one click installer</a> and run it. I suggest installing it somewhere easy to find (i.e. c:/ruby).<br /><br />b) Fire up DOS! If you're used to a fancy visual environment, then this might be a shock (it certainly was for me) - you can do it by clicking start, then run, then entering "cmd" and pressing enter. (I said this was a guide for beginners, didn't I?)<br /><br />c) The one click installation included a very clever set of scripts called <a href="http://rubygems.rubyforge.org/wiki/wiki.pl?action=browse&id=RubyGems&oldid=HomePage">Gems</a>, which basically allows you to manage add-ons for ruby through one unified program. We need to make sure the actual Gems script is upto date, which we do by typing:<br /><blockquote>gem install rubygems_update</blockquote>and then:<br /><blockquote>update_rubygems</blockquote><br />This updates it to the latest version (at time of writing, 0.8.8) so the next step goes without a hitch.<br /><br />c) We'll now install the Rails framework, by entering:<br /><blockquote style="font-style: italic;">gem install rails</blockquote><br />Press Y to agree to everything and the installation should complete without a hitch.<br /><br />Well done, you've now installed ruby and the rails framework!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11862534-111240251370137438?l=codecity.blogspot.com'/></div>Benhttp://www.blogger.com/profile/13843629164123629043noreply@blogger.com3tag:blogger.com,1999:blog-11862534.post-1112403226284690092005-04-02T01:42:00.000+01:002005-04-02T01:54:08.513+01:00IntroductionI've always believed that the best way to test (and revise) your own knowledge of a topic was to see if you could teach it to somebody else, and this is what I'm going to attempt to do with Ruby and Rails. There seems to be a lack of decent tutorials that move beyond the basic "Look! Scaffolding!" stage (if that makes no sense, don't worry, I'll explain later) or others waste time explaining very basic programming concepts (like variables or loops). Unashamedly, I intend to pitch this at people at myself: having a reasonable knowledge of another languages (in my case, ASP) and web technologies like HTML but being knew to the whole object orientated business, and thus finding ruby/rails a bit challenging.<br /><br />There are a couple of important points though:<br /><ul> <li>I'm a beginner myself. If there's a mistake, I'll fix it - please <a href="mailto:benedictsmith@gmail.com">email me</a> if you see something you think should be changed.<br /> </li> <li>I'm stupid, and like to take baby steps. I'm sorry if that infuriates you, but nothing fustrates me more then when a tutorial author makes a huge leap, failing to explain something important.</li> </ul><br />If you'd like to help me with this, please <a href="mailto:benedictsmith@gmail.com">drop me a line</a>!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11862534-111240322628469009?l=codecity.blogspot.com'/></div>Benhttp://www.blogger.com/profile/13843629164123629043noreply@blogger.com0tag:blogger.com,1999:blog-11862534.post-1112401125146372002005-04-02T01:17:00.000+01:002005-04-02T01:29:01.250+01:00Welcome!This site will mostly be used for documenting my learning of Ruby and the Rails framework. If you're going to link here, please point to www.codecity.co.uk since this host will probably change soon.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11862534-111240112514637200?l=codecity.blogspot.com'/></div>Benhttp://www.blogger.com/profile/13843629164123629043noreply@blogger.com0