<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Thomas On Rails: Category Rails</title>
    <link>http://www.thomasonrails.com/articles/category/rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Ruminations of a Daddy,Coder,Gamer,Photographer</description>
    <item>
      <title>New Toy</title>
      <description>I finished my latest toy, and after 17 days of trying to get it deployed finally did.  Huge pain in the rear.  In either case I will announce it shortly.  I also would like to stop for a second and point out the fact that Typo's ability to filter spam sucks.  It says "allow for non-ajax comments", leaving it unchecked is supposed to limit spam NOT!   This is horrid, and I would like to take this moment to say that spammers should be beaten to death with their own shoes.
</description>
      <pubDate>Tue, 24 Apr 2007 16:18:07 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:6cfd3363-8745-4c49-a8fd-8dd21151634b</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2007/04/24/new-toy</link>
      <category>Rails</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Success!!!!</title>
      <description>&lt;p&gt;Finally, got rails and ruby and rflickr and RMagick all playing nice together... it took a bit but in the end I got it done.  The drawinports way is the way I chose, and it worked well.  The process is roughly like:&lt;p&gt;
&lt;hr=50%&gt;&lt;/hr&gt;

&lt;p&gt;
Use the MacOS X cd's to install the X11SDK package, and then the x11 package.  This package (the x11 one) is hard to find, its on the cd in the "other packages" .mpkg file.  Though I don't have the cd on me now so let me double check that name.&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;After thats done, you can get darwinports and follow the instructions here:&lt;/p&gt;
&lt;a href="http://blog.nanorails.com/articles/2006/07/11/installing-rails-on-mac-os-x-tiger"&gt;http://blog.nanorails.com/articles/2006/07/11/installing-rails-on-mac-os-x-tiger&lt;/a&gt;
&lt;p&gt;
A few gotcha's with RMagick, if you install it with the gem apparently you need to use:
require 'rubygems' before the 
require 'RMagick'&lt;/p&gt;

&lt;p&gt;
Then you can install rflickr by calling:&lt;/p&gt;
&lt;code&gt;
sudo gem install rflickr --remote&lt;/code&gt;
and
Instead of:&lt;/p&gt;

&lt;code&gt;&lt;p&gt;require_gem 'rflickr'&lt;/code&gt;

do

require 'flickr'
as per here:&lt;/p&gt;
&lt;a href="http://rubyforge.org/forum/forum.php?thread_id=11449&amp;forum_id=4256"&gt;http://rubyforge.org/forum/forum.php?thread_id=11449&amp;forum_id=4256&lt;/a&gt;

&lt;p&gt;So all that to say I now have Ruby On Rails working with RadRails on my macOSX tiger intel core 2 duo. w00t&lt;/p&gt;







</description>
      <pubDate>Thu, 01 Feb 2007 09:52:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:4cf2c436-b390-45f1-a470-447e0844140a</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2007/02/01/success</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>MacOS X</category>
      <category>ruby</category>
      <category>macos</category>
      <category>x</category>
      <category>rails</category>
      <category>radrails</category>
      <category>success</category>
      <category>x11</category>
    </item>
    <item>
      <title>Ruby on Rails and MacOS X</title>
      <description>So I decided I need to get ruby on rails running...I did get it running using the one click install called "locomotion", but my curiosity got the better of me and I wanted to use &lt;a href="http://www.radrails.org/"&gt;radrails&lt;/a&gt;.  It was soon apparent that a normal install of Rails was needed so off to the net I go to find out all the info.  It turns out &lt;a href="http://darwinports.opendarwin.org/"&gt;darwinports&lt;/a&gt; is used to get this ruby on rails thing going, and I follow this nice guide &lt;a href="http://blog.nanorails.com/articles/2006/07/11/installing-rails-on-mac-os-x-tiger"&gt;here&lt;/a&gt; to do so.

Now for the problem, it turns out that I am getting this error when I try to install ruby gems, apparently after some hunting it turns out the &lt;a href="http://darwinports.opendarwin.org/"&gt;darwinports&lt;/a&gt; version of gems is broke (sudo port install rb-rubygems).  Turns out much to my suprsie this is documented and you can google the exact error you get when you try to (sudo gem install -y rails).  Now folks for the bad news, all the "fixes" I found on the net, all the things that said "oh ya its easy just do this...or change that line here" don't work.  I realized I don't exactly recall installing ruby, as per the tutorial I used...it was already installed so perhaps things are getting mis matched for locations of install paths *shrug*, I am not a linux enough guru yet to figure all this out, so far.  Rails is not working as it should...It seems to be in Locomotive but not on its own :(  Hopefully I will be able to have a better report soon...


</description>
      <pubDate>Tue, 30 Jan 2007 16:40:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:e67b3a25-76be-4ca3-8815-b53305649199</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2007/01/30/ruby-on-rails-and-macos-x</link>
      <category>Rails</category>
    </item>
    <item>
      <title>Ruby for Rails</title>
      <description>&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://farm1.static.flickr.com/115/363881007_e80d97ef53_m.jpg" alt="" id="Photo ROR" border="0" /&gt;
I am finally getting serious about Ruby, and Rails as i just went out and bought the book "Ruby for Rails".  So far I am not that far into it, but I have my rails environment set up on my Ubuntu install, and once my macbook gets in there too.  The most important Gems I use when using Ruby is:

The RMagick gem (image manipulation)
and the rFlickr gem (flickr API gem).

I have a few flickr toy ideas ruminating in my head so I will have to start seriously to get to coding on this.  I have decided of all the web technologies out there, Rails is the one I want to become pro on.  This is a hard choice, as I most likely will not use it at work ever (they are mostly JSF).  Such is life...choose life, choose rails.
</description>
      <pubDate>Sat, 20 Jan 2007 15:51:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:89bb7ee9-2317-458b-b497-89e3f9e45243</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2007/01/20/ruby-for-rails</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>ruby</category>
      <category>rails</category>
      <category>Ruby for Rails</category>
      <category>JSF</category>
      <enclosure type="image/jpeg" url="http://www.thomasonrails.com/files/rforr.jpg" length="33383"/>
    </item>
    <item>
      <title>RoR != Depression.</title>
      <description>I might of jumped the gun, I figured the flickr links not working was operator error.  But several things came together at onceu to make me think it was just flat out dead, it turns out had just the logging been working I would of seen the error instantly:  "Expired api key for flickr api", WHA?????  I double check, and it seems the installed flickr gem had someone elses' flickr api key in the flickr.rb file.  A change of that, and not only am I back up and running but I am getting statistics too! :) Woo Hoo! :D  Now if I could just stop the spam from coming in... :(

</description>
      <pubDate>Wed, 25 Oct 2006 15:07:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:a0385436-1daf-4e4a-9fdc-e52750d62bbc</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2006/10/25/ror-depression</link>
      <category>Rails</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>RoR = Depression On Rails</title>
      <description>For no reason that I can discern, my ruby on rails warholit application stopped working with flickr based links.  That would be fine had I mucked with the code that parses the URL or anything, but nope I haven't touched any of that since it was first determined to be working.  This is annoying for that reason, I guess I have to now unload my app from online down to my local box somehow and start playing with it (as my logging events aren't working anymore either *Shrug*).  High irritating to have code stop working for no reason.  I thought perhaps the flickr API changed to render my flickr.rb gem obsolete, but that would be insane to change an API and break your clients around the world.  grrrrr....
</description>
      <pubDate>Tue, 17 Oct 2006 09:09:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:4a1092a6-9ef2-4c57-a1da-20dad9c0c119</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2006/10/17/ror-depression-on-rails</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>Me</category>
      <category>Hacks</category>
    </item>
    <item>
      <title>Noobies first impression of his first RoR project.</title>
      <description>&lt;p&gt;First of all, I have never done web programming before, and really never had the inclination.  That all has changed with Ruby on Rails.  For many reasons, first and foremost is the price of entry.   It is relatively easy to get started in RoR and deployment to a webhost isn't to bad.  My host is &lt;a href="http://www.hostingrails.com/warholit/"&gt;HostingRails.com&lt;/a&gt;.  They have some sweet deals for free or near free web hosting and very helpful staff.  I recomend them a great deal.&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.thomasonrails.com/"&gt;Warholit! &lt;/a&gt;was my first forray into Ruby on Rails.  For the other newbie rails users, I would like to distribute some tips and lessons learned. (this is a lessons learned from warholit, mostly a stupid list of all the gotchas that I ran into while stepping into the Ruby on Rails waters with this project):&lt;/p&gt;

&lt;ul&gt;
   &lt;li&gt;Keep your development machine and webhosc always running at the same version &lt;/li&gt;
   &lt;li&gt;Remember on your web host, if your application just doesnt seem to start from the web browser, try from the command prompt of your web host % &gt;script/console&lt;/li&gt;
  &lt;li&gt;Something in particular this project:  RMagick has two modes Q8 and Q16, if you are doing an operation on your dev machine that looks funky on the web host, double check what version you have of RMagick and find a work around for converting.&lt;/li&gt;
&lt;li&gt; Multiple Applications can run on a single host usually, though you have to do funky stuff.  I put this here cause i was never sure if this was true or not, it indeed ist rue and the host should help you to set that up.  Typically it invovles haveing one RoR app that contains another ina  subdirectory, the routes and perhaps some other stuff make setting this up difficult at times, but well worth it.  I am currently running typo, and within that my RoR flickr toy &lt;a href="http://www.thomasonrails.com/warholit/"&gt;"Warholit"&lt;/a&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt; I would also like to take a moment to state that Typo (what powers this blog) is awesome.  It's adminstrative functions are lovely and very web 2.0 :).  So I guess my number one tip for those new to Ruby on Rails is first, spend some time developing simple and fun Ruby scripts.  Then after that, find a great book that shows you Ruby on Rails, I hear "Ruby for Rails" is a great book (though I learned all my stuff using the "Agile web development with Rails" book (not so bad)).  The biggest trouble I had when starting out was learning how to pass arguments from web page to Ruby script and back again.  I will release some sourcecode to my warholit app after it has matured a bit more to demonstrate this.  (I also found it quite difficult at first to figure out how to use check boxes and option boxes).&lt;/p&gt;

&lt;p&gt; All in all I am happy with Ruby on Rails.  It is a fun new way to code, and as someone who has always wanted to write web apps makes the barrier to entry very low.  My biggest concern was how I was going to coax my webhost into allowing me to host multiple rails applictions (like this typo blog AND my warholit app) but with some help and some knowhow, it was a very doable thing at no extra cost.  For those who have always wanted to try Web Development, I think ruby on rails is the way to go, but now I guess I am officially a biased opinion :)&lt;/p&gt;

</description>
      <pubDate>Mon, 14 Aug 2006 13:18:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:9fb99ee8-187d-4cce-b9ed-db42c279504f</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2006/08/14/warholit-postmortem</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>Hacks</category>
      <category>Ruminations</category>
      <category>hacks</category>
      <category>postmortem</category>
      <category>warholit</category>
      <category>reflection</category>
      <category>tips</category>
    </item>
    <item>
      <title>Warhol it! V1.1</title>
      <description>I would like to announce &lt;a href="http://www.thomasonrails.com/warholit/"&gt; Warhol It! V1.1 &lt;/a&gt;.  It is finished! Finally, big thanks to &lt;a href="http://www.hostingrails.com"&gt; HostingRails.com&lt;/a&gt; for all their help in supporting me to get it up and running on their new speedy servers.

So now I can finally continue sprucing up this blog some.  Have Fun!
</description>
      <pubDate>Wed, 09 Aug 2006 16:23:41 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:97e097df-1d72-4079-859d-4055bbbdd22b</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2006/08/09/warhol-it-v1-1</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>Hacks</category>
    </item>
    <item>
      <title>Sorry...</title>
      <description>&lt;p&gt;Well, its now saturday and I am still stumped as to what is going on.  So if you found this through the flickr group Warhol it! lookin for the flickr toy, hang in there.  It is coming.  You can even goto &lt;a href="http://www.thomasonrails.com/warholit/"&gt; http://www.thomasonrails.com/warholit/ &lt;/a&gt;  to get a preview now, only problem is it won't send back the image (hence the problem im having is a huge one yes.).  But you can see the direction the toy (and any future toys I cook up) is going.&lt;/p&gt;

&lt;p&gt;In the meantime, perhaps i'll post a video of me like tap dancing or something...so the entertainment value remains the same.  Tonight I plan on burning some midnight oil and trying to hack at it some more to get it to work.  &lt;/p&gt;</description>
      <pubDate>Sat, 05 Aug 2006 17:01:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:eb0aedc7-f302-4d01-bb16-2053090c22be</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2006/08/05/sorry</link>
      <category>Rails</category>
      <category>flickr</category>
      <category>toy</category>
      <category>warholit</category>
      <category>dang</category>
      <category>crap</category>
    </item>
    <item>
      <title>No joy</title>
      <description>Well it seems that freezing (or unpacking) the gems to 1.1.2 didn't matter nor fix it.  So this is a bummer as my flickr toy is still not working.   ;(</description>
      <pubDate>Thu, 03 Aug 2006 14:21:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:7a3cec2f-9b30-4156-a938-c2315fe7c327</guid>
      <author>Codejoy</author>
      <link>http://www.thomasonrails.com/articles/2006/08/03/no-joy</link>
      <category>Rails</category>
      <category>Hacks</category>
      <category>rails</category>
      <category>flickrtoy</category>
      <category>toy</category>
      <category>1.1.2</category>
    </item>
  </channel>
</rss>
