tag:blogger.com,1999:blog-82429621484039777472009-03-06T06:16:33.620+11:00Andrew On RailsDocuments lessons, problems, cool stuff as I venture into the world of Ruby and more specifically Ruby On RailsAndrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-8242962148403977747.post-4771683393307247392008-06-11T21:35:00.002+10:002008-06-11T21:41:13.419+10:00SVN Bus Error - LeopardHit on a weird problem tonight. When I went to checkout or export a subversion directory from a web location using the command<br /><br />svn export [repolocation] [directorytocheckoutto]<br /><br />I got the following output<br /><br />bus error<br /><br />Weird aye? I'm on a Macbook Pro running leopard and I finally worked out that there was a problem with my subversion installation. After reinstallation (<a href="http://hivelogic.com/articles/2006/04/svn_on_os_x">http://hivelogic.com/articles/2006/04/svn_on_os_x</a>) it worked fine. <br /><br />Anyway just thought ild put it out on the web seeing as I googled for a far while without finding the solution.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-477168339330724739?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com1tag:blogger.com,1999:blog-8242962148403977747.post-73231725317373397402008-05-31T21:45:00.002+10:002008-05-31T21:51:23.497+10:00Cross browser testingNow this is something ilve been looking for for a while <a href="http://browsershots.org/">http://browsershots.org/</a>, awesome you can get a screen shot of your webpage in every browser under the sun. Its free and really really simple to use... only downside is that you might have to wait a couple of minutes for your screenshots to be taken. <br /><br />Until that majestic day where all IE browsers are obliterated OR IE start using the standards them this tool might make life slightly easier in the meantime.<br /><br />If you use this tool commercially, please support the project to help keep it running.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-7323172531737339740?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-20597927076996102252008-05-25T21:05:00.002+10:002008-05-25T21:10:34.157+10:0019 Tips and Tricks for Rails Developers<a href="http://www.rubyinside.com/19-rails-tricks-most-rails-coders-dont-know-131.html">http://www.rubyinside.com/19-rails-tricks-most-rails-coders-dont-know-131.html</a><br /><br />Nothing to groundbreaking here .. especially since it was posted last year. But does provide some useful reminders about some lesser known functions in rails. <br /><br />One thing of real interest to me is Engines (<a href="http://api.rails-engines.org/">http://api.rails-engines.org/</a>), ilve been working on a basic authentication system (based on the restful_authentication) that is well tested and fully operational, cause pretty much every rails project is going to need a nice authenticaion system, And if engine can supply an easy way to implement the code into all projects then life will be sweet.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-2059792707699610225?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-89671039891584553412008-05-19T09:15:00.002+10:002008-05-19T09:24:33.853+10:00Testing in Browser Versions - IE6, IE7For us poor web developers who are trying to the right thing and support IE6 and IE7, here is a tool that might make your lives a little easier. <br /><br />Its IE6 standalone, until I found this tool half the battle was getting both IE6 and IE7 installed on your computer and operating correctly. Now you can upgrade to IE7 if you havn't already and just install this product <a href="http://tredosoft.com/Multiple_IE">http://tredosoft.com/Multiple_IE</a> (download link at the bottom of the page) to get IE6 aswell. If your looking for IE5 or even earlier, this product goes back to about IE3 i think... the mind boggles to think that there might be people still using IE2 but if you have requirements from a customer then you might need it. <br /><br />Its still painful to test both IE6 and IE7 but sometimes things must be done and at least this way you don't have to play around with virtual machines and that sort of stuff.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-8967103989158455341?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-47511383256890942692008-05-18T10:31:00.005+10:002008-05-18T17:11:08.522+10:00Autotest and Snarl - Coding bliss is obtainable in WindowsOk when I was trying to setup my autotest with Snarl on windows box I had quite a few problems and couldn't really find a blog that told me how to do it exactely. Ok so for the few people stuck on windows boxes out there this should get you up and running.<br /><ol><li><span style="font-size:100%;">Install <a href="http://www.fullphat.net/downloads.htm">Snarl</a> (This setup makes you install some other program that Snarl has a dependacy on)<br /></span></li><li><span style="font-size:100%;">Install autotest if you havn't got it (<code>gem install ZenTest</code>)</span></li><li><span style="font-size:100%;">Install the ruby-snarl gem (<code>gem install ruby-snarl</code>)</span></li><li><span style="font-size:100%;">Download and install the <a href="http://gnuwin32.sourceforge.net/packages/diffutils.htm" rel="external" title="Download the package">GNU DiffUtils package</a><a href="http://gnuwin32.sourceforge.net/packages.html"> </a>– I installed this into my <kbd style="font-family: courier new;">C:\Program Files\GnuWin32</kbd> directory.</span></li><li><span style="font-size:100%;">Add the </span><span style="font-family:courier new;font-size:100%;">C:\Program Files\GnuWin32\bin<span style="font-family:verdana;"> to your PATH environment variable. (<a href="http://support.microsoft.com/kb/310519">http://support.microsoft.com/kb/310519</a> if you need some help with that)</span></span></li><li><span style="font-family:courier new;font-size:100%;"><span style="font-family:verdana;">Set your HOME environment variable to something like </span></span><span style="font-size:100%;"><samp>C:\Documents and Settings\{USERNAME}</samp></span></li><li><span style="font-family:Georgia,serif;font-size:100%;">Ok now for some pretty pictures to show when a test passes or fails. I use the ones from <a href="http://www.danielfischer.com/2007/05/14/ruby-on-rails-bdd-with-autotest-growl-rspec/">here.</a> But you can make your own or get some from somewhere else if you like. Save these pictures to the </span><span style="font-size:100%;"><kbd><var>$RUBY_HOME</var>\lib\ruby\gems\1.8\gems\ZenTest-3.6.1\lib\icons</kbd> as accept.png and exclamation.png (You may have to create the icons directory) Note that <var>$RUBY_HOME</var> is the directory where Ruby is installed, on my computer that means C:\Ruby<br /><img src="http://www.danielfischer.com/wp-content/uploads/2007/05/rails_ok-copy.png" /> <img src="http://www.danielfischer.com/wp-content/uploads/2007/05/rails_fail-copy.png" /></span> </li><li><span style="font-size:100%;">Now create a file called .autotest in your Rails Applications root directory and place the following line in it<br /></span><pre class="source-code-box"><span style="font-size:100%;">require 'autotest/snarl</span><span style="font-family:Georgia,serif,mon,mon;font-size:100%;">'</span></pre><span style="font-size:100%;">Note: If you can't work out how to create the .autotest file in windows because renaming it in the GUI doesn't work. The easiest way I found to make the file was to open up a command window, navigate to the rails application root directory then type edit .autotest and then just save the file. (Im sure there are much easier ways to create this file but I didn't want to spend anymore time looking for them)</span></li><li><span style="font-size:100%;">And thats it ... now you should just be able to type autotest in the command prompt while in your rails application root and autotest should begin. And if you tests pass you should see something like this</span></li></ol><span style="font-size:100%;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_BcGjvGGzk-4/SC-C5-pLNrI/AAAAAAAAE_o/VAHbnzOzQKk/s1600-h/Test+Passed.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_BcGjvGGzk-4/SC-C5-pLNrI/AAAAAAAAE_o/VAHbnzOzQKk/s200/Test+Passed.JPG" alt="" id="BLOGGER_PHOTO_ID_5201520027216066226" border="0" /></a><br /><br />Welcome to a new world of productivity where you can implement a new feature and go straight onto the next while your tests run in the background. And now you wont need need to switch back to the command prompt to check that your tests passed!<br /><br />If I'lve missed out something important then please leave a comment and Ill update the post.<br /><br />Other references that may be helpful and that were used in the making of this blog include, many thanks to the authors of these blogs</span><br /><ul><li><a href="http://www.thewebfellas.com/blog/2007/12/10/rspec-autotest-and-snarl-on-windows">http://www.thewebfellas.com/blog/2007/12/10/rspec-autotest-and-snarl-on-windows</a></li><li><a href="http://ph7spot.com/articles/getting_started_with_autotest">http://ph7spot.com/articles/getting_started_with_autotest</a><br /></li></ul><div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-4751138325689094269?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com5tag:blogger.com,1999:blog-8242962148403977747.post-24224085122929851542008-05-17T11:28:00.002+10:002008-05-17T11:32:32.470+10:00Autotest WindowsIf you having problems like `expand_path’: couldn’t find HOME environment when trying to run autotest on windows. Check out this blog it helped me fix my problems <a href="http://dirk.net/2008/01/30/autotest-rails-on-windows/">http://dirk.net/2008/01/30/autotest-rails-on-windows/</a><div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-2422408512292985154?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-81104596984598403392008-05-15T20:29:00.002+10:002008-05-15T20:31:13.406+10:00Google Code Blog: Introducing Google DoctypeSomething pretty neat ... worth checking out<br /><br /><blockquote><br />Google Doctype contains dozens of articles written by top Googlers on topics important to all web developers: security, performance, caching, DOM manipulation, CSS styling, and more. It contains over 8,000 lines of JavaScript code: Google's own battle-tested JavaScript library, released today under a liberal open source license. And it contains the beginnings of a test-driven reference of the open web: a reference of every element, every attribute, every DOM method, every CSS property, all backed up by test cases.<br /></blockquote><br /><br />If your going to learn about the DOM and CSS and stuff this probably isn't such a bad place to go. <br /><br /><a href="http://google-code-updates.blogspot.com/2008/05/introducing-google-doctype.html">Google Code Blog: Introducing Google Doctype</a><div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-8110459698459840339?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-46785378731015528882008-05-14T20:23:00.003+10:002008-05-14T20:36:04.546+10:00Why I love RailsAfter working on a .Net project again at <a href="http://www.sentia.com.au">http://www.sentia.com.au</a> today I just thought ild list a few points about why I love rails so much and am starting to really dislike some things about .Net. Im sure there are many more things to add to this list as I learn more and more.<br /><br />- Coding by convention. I love it that there is a set way of doing things that you only have to learn once regardless of which company you are working for.<br />- Relaxed syntax rules. I love the way in ruby you can leave out braces if your not in a braces mode and not one compiler is going to care or bug me about it. <br />- A vibrant community of people are there for support. Sure .Net may have more comprehensive documentation in the MSDN and multiple but damn its got some boring people behind it. Also when searching on google the results are usually flooded with the last 10 years of newbies posts. Although im sure that will happen with rails as well but its not the case ATM. <br /><br />Thats it for the moment, but I'm sure more will come to mind in the future.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-4678537873101552888?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-2953619852523831462008-05-10T22:44:00.001+10:002008-05-14T20:23:21.022+10:00Suggestions for setting up a new RoR projectNew Project Setup<br /><br />1) Create Basecamp project<br />2) Create Code Repository<br />3) Checkout Code to local machine<br />4) Create Rails App (rails [appname])<br />5) Add Rcov plugin to app (ruby script/plugin install http://svn.codahale.com/rails_rcov)<br />6) Add Rcov CC integration task (http://deadprogrammersociety.blogspot.com/2007/06/cruisecontrolrb-and-rcov-are-so-good.html) and install plugin to ensure build fails if below 100% code coverage (http://www.viget.com/extend/tools-of-the-trade-vl-cruise-control/) (See http://andrewonrails.blogspot.com/2008/04/cruisecontrolrb-and-rcov-ensure-100.html)<br />7) Checkin Brand New App<br />8) Add to CruiseControlRB (Cruise add [ProjectName] -u svn://repositorylocation [username] [password])<br /><br />Done :-)<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-295361985252383146?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-54078759041741478952008-04-29T20:37:00.002+10:002008-04-29T21:24:54.614+10:00The simple lifeCame across this article <a href="http://www.ibm.com/developerworks/library/wi-arch27.html">http://www.ibm.com/developerworks/library/wi-arch27.html</a> by Mikko Kontio about keeping it simple. This is a great article to read if you are thinking of starting up your own buisness and/or are a enthusiastic developer looking for something more than writing copious amounts of code. <br /><br /><span style="font-style:italic;">For the business people </span><br /><br /><blockquote>"If you can't explain a strategy in five minutes, it's too complicated and probably won't work."</blockquote><br /><br />How many times have we seen that one in action in the workplace? Manager stands up for a half hour 'indroduction' and why the company is doing so and so and how we are ment to implement that particular strategy... the meeting turns into a q/a session at the end and drags into the next hours ... shouldn't that be ringing alarm bells ??<br /><br /><span style="font-style:italic;">And for the Developers</span><br /><br /><blockquote>Some customers are ready to pay for quality software that has only a fraction of the features that other applications have, so long as the software works exceptionally well and the features are relevant to their needs.</blockquote><br /><br />There is no need to add features that arn't core to the product and that only a small percentage of user will actually use. The larger the product the more bugs created and the harder it is to test. <br /><br />Now why didn't they teach us this stuff at uni??<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-5407875904174147895?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-37621881584467090202008-04-28T15:01:00.002+10:002008-04-28T16:03:32.151+10:00RESTingOk so I used scaffold and done a few tutorials before launching into my own project. I knew REST and CRUD and all that stuff were important but never really understood them. Im not saying I completely understand the concepts yet, but I am starting to realise their importance, especially after my project was getting messier and messier and when I started to think along these lines ... "This is rails, why the hell do I need to hack this controller to get it to do something simple" I turned to google to see what I was missing. <br /><br />First blog I came across was this one <a href="http://www.rubyrailways.com/great-ruby-on-rails-rest-resources/">http://www.rubyrailways.com/great-ruby-on-rails-rest-resources/</a> which lead me to a series of blogs from softiesonrails which made things alot clearer.<br /><br />Part 1 - <a href="http://www.softiesonrails.com/2007/3/28/rest-101-part-1-understanding-resources">http://www.softiesonrails.com/2007/3/28/rest-101-part-1-understanding-resources</a><br /><br />Part 2 - <a href="http://www.softiesonrails.com/2007/4/3/rest-101-part-2-a-million-apis">http://www.softiesonrails.com/2007/4/3/rest-101-part-2-a-million-apis</a><br /><br />Part 3 - <a href="http://www.softiesonrails.com/2007/4/10/rest-101-part-3-just-call-me-the-repo-man">http://www.softiesonrails.com/2007/4/10/rest-101-part-3-just-call-me-the-repo-man</a><br /><br />Part 4 - <a href="http://www.softiesonrails.com/2007/4/18/rest-101-part-4-routing">http://www.softiesonrails.com/2007/4/18/rest-101-part-4-routing</a><br /><br />Part 5 - <a href="http://softiesonrails.com/2007/5/1/rest-101-part-5-respond">http://softiesonrails.com/2007/5/1/rest-101-part-5-respond</a><br /><br />One of the main things I got out of these blogs was this paragraph from <a href="http://www.softiesonrails.com/2007/4/18/rest-101-part-4-routing">Part 4</a><br /><br /><blockquote>You may already be wondering how in the world you're going to develop a Rails application if those are the only actions you're allowed to have in your controllers. Well, first of all, don't worry. If you really, really think you have a situation that requires a few extra actions, then go right ahead and add them to your controller. Just remember that having any extra actions can be a warning sign that you haven't identified all of your resources yet.</blockquote><br /><br />After trying to hack on extra actions to my controllers i finally realised that I was treating rails with contempt. It was trying to push me to use the REST and CRUD principals while I was trying make it work without really understanding what i was doing. I still wasn't thinking of my app in terms of resources. <br /><br />The series mentioned above is invaluable for rails newbies like me that have a bit of an understanding but are still trying to use almost OO concepts to build websites.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-3762188158446709020?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-69418501725844551162008-04-25T12:51:00.002+10:002008-04-25T13:07:00.563+10:00CruiseControlRB and Rcov - Ensure 100% CoverageFound this awesome blog explaining how to integrate RCOV and CruiseControlRB <br /><br /><a href="http://deadprogrammersociety.blogspot.com/2007/06/cruisecontrolrb-and-rcov-are-so-good.html">http://deadprogrammersociety.blogspot.com/2007/06/cruisecontrolrb-and-rcov-are-so-good.html</a><br /><br />And this blog explains how to use their plugin to ensure build will fail if code coverage is less than specified. <br /><br /><a href="http://www.viget.com/extend/tools-of-the-trade-vl-cruise-control/">http://www.viget.com/extend/tools-of-the-trade-vl-cruise-control/</a><br /><br />Awesome, im gonna start at 100% and this will ensure I never let the Code Coverage slip. Sure its doesn't ensure that my program doesn't have any bugs but its alot better than nothing.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-6941850172584455116?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-21170581878560660122008-01-24T13:09:00.000+11:002008-01-24T13:11:43.705+11:00Going OverseasWill be overseas for the next few months. Hoping to get back into it after my break. :-) meanwhile keep up with RoR<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-2117058187856066012?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-3996155929122257432008-01-06T22:23:00.000+11:002008-01-06T22:56:58.254+11:00Hosting Ruby on RailsI'm currently testing out <a href="https://www.crucialp.com/">https://www.crucialp.com/</a> as my ROR hosting provider. Its a cpanel setup which is a bit hard to get used to but the support is brilliant and any ticket submitted is always looked at within half and hour. For 6.95 US a month its very good value (3GB of space and 60GB Bandwidth) and no catches.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-399615592912225743?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-88176630474085756402008-01-06T22:15:00.000+11:002008-01-06T22:23:09.605+11:00Netbeans the go for Ruby on RailsNetbeans 6.0 is by far the best (free) windows Ruby on Rails IDE ilve come across, I did try RoRed and a few other ones but Netbeans is the best. It is still a bit clunky but after doing almost all my dev work previously in Visual Studio it is like working with lightning. I recommend it to anyone looking to get started in ROR but maybe not in a full scale production environment.<div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-8817663047408575640?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com6tag:blogger.com,1999:blog-8242962148403977747.post-83696658527835868322007-12-29T13:32:00.001+11:002007-12-29T13:45:00.571+11:00Netbeans and RubyDecided to go with netbeans as my IDE, after trying a few different ones it seems like the only decent one for windows platforms anyway. After installing Netbeans 6.0 I found out that I didn't fully support Rails 2.0 (Released mid Dec 07). A quick google found that 6.1 (Currently in dev) has support Rails 2.0 especially in terms of the new scaffolding parameters. After giving it a quick test it looks good but 6.1 is pretty unstable in other areas though.<br /><br />http://download.netbeans.org/netbeans/6.0/final/<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.netbeans.org/index.html"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://www.netbeans.org/images/v5/nb-logo2.gif" border="0" alt="" /></a><div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-8369665852783586832?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0tag:blogger.com,1999:blog-8242962148403977747.post-50610688722530395192007-12-29T09:18:00.000+11:002007-12-29T09:33:04.499+11:00The ruby adventure beginsToday is the day that learning Ruby begins. Coming from a .NET C# web dev experience I am looking to learn how to use ruby and more specifically ruby on rails. This blog will describe and document my experiences and learning curves as I go. <br /><br />Today I have been learning the ruby syntax to start with, using <a href="http://www.math.umd.edu/~dcarrera/ruby/0.3/index.html">http://www.math.umd.edu/~dcarrera/ruby/0.3/index.html</a> it is a very very simplistic way to start but when learning a new language it is nice to start off nice and easy. <br /><br />I know hash tables and stuff are in C# but ilve never actually used them really, so using them in ruby will be new and exciting. <br /><br /><pre class="csharpcode"><br />friend = {<br /> <span class="str">"first name"</span> =&gt; <span class="str">"Jeffrey"</span>,<br /> <span class="str">"last name"</span> =&gt; <span class="str">"Biggs"</span>,<br /> <span class="str">"address"</span> =&gt; <span class="str">"34 Airport Rd"</span>, <br /> <span class="str">"city"</span> =&gt; <span class="str">"Toronto"</span>,<br /> <span class="str">"province"</span> =&gt; <span class="str">"Ontario"</span><br />}<br /></pre><br /><pre class="csharpcode"><br />friend.each <span class="kwrd">do</span> |key, <span class="kwrd">value</span>| <br /> puts key + <span class="str">" =&gt; "</span> + <span class="kwrd">value</span> <br />end</pre><br />Produces<br /><pre class="csharpcode"><br />city =&gt; Toronto<br />last name =&gt; Biggs<br />country =&gt; Canada<br />province =&gt; Ontario<br />address =&gt; 34 Airport Rd <br />first name =&gt; Jeffrey</pre><div class="blogger-post-footer"><p><a href="http://www.feedburner.com" target="_blank"><img src="http://www.feedburner.com/fb/images/pub/powered_by_fb.gif" alt="Powered by FeedBurner" style="border:0"/></a></p><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8242962148403977747-5061068872253039519?l=andrewonrails.blogspot.com'/></div>Andrew Dedmanhttp://www.blogger.com/profile/08920608656233288224noreply@blogger.com0