<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Forward</title>
	<atom:link href="http://brianbruijn.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://brianbruijn.wordpress.com</link>
	<description>making fun out of craziness</description>
	<lastBuildDate>Sun, 30 Jan 2011 22:51:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='brianbruijn.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Forward</title>
		<link>http://brianbruijn.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://brianbruijn.wordpress.com/osd.xml" title="Forward" />
	<atom:link rel='hub' href='http://brianbruijn.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Moving to brianbruijn.com</title>
		<link>http://brianbruijn.wordpress.com/2010/03/05/moving-to-brianbruijn-com/</link>
		<comments>http://brianbruijn.wordpress.com/2010/03/05/moving-to-brianbruijn-com/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 05:33:20 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=112</guid>
		<description><![CDATA[It has been a long time since I have posted to the blog and I have finally got my new site up and running. So it is time to be a nerd on many fronts. If you like some of the posts you have seen here, feel free to check out my new site http://www.brianbruijn.com. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=112&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It has been a long time since I have posted to the blog and I have finally got my new site up and running. </p>
<p>So it is time to be a nerd on many fronts. If you like some of the posts you have seen here, feel free to check out my new site http://www.brianbruijn.com. </p>
<p>Also, I have finally joined the world of twitter @brianbruijn. http://www.twitter.com/brianbruijn</p>
<p>It has been fun on WordPress.</p>
<p>So for starters I will be posting on just stuff about life and what is going on in my endeavors regarding, ColdFusion, Ruby on Rails and Drupal. I will also be including life stuff as well. </p>
<p>Say hello and as usual, I appreciate the comments. </p>
<p>Brian      </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=112&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2010/03/05/moving-to-brianbruijn-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Political War Game and Battles for America</title>
		<link>http://brianbruijn.wordpress.com/2009/12/05/political-war-game-and-battles-for-america/</link>
		<comments>http://brianbruijn.wordpress.com/2009/12/05/political-war-game-and-battles-for-america/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 00:38:28 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[agile development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[political game]]></category>
		<category><![CDATA[Politiwars]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[communist]]></category>
		<category><![CDATA[constitution]]></category>
		<category><![CDATA[democrat]]></category>
		<category><![CDATA[green]]></category>
		<category><![CDATA[independent]]></category>
		<category><![CDATA[libertarian]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[republican]]></category>
		<category><![CDATA[socialist]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=104</guid>
		<description><![CDATA[Well it has been a long time since I have posted something here. I have been coding hard on a new Ruby on Rails site. This one is a game of American politics. Politiwars has been launched and after some preliminary debugging with a couple of friends I am ready to post it so that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=104&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well it has been a long time since I have posted something here. I have been coding hard on a new Ruby on Rails site.</p>
<p>This one is a game of American politics.</p>
<p><a title="Politcal Game of owning America" href="http://www.politiwars.com" target="_self">Politiwars</a> has been launched and after some preliminary debugging with a couple of friends I am ready to post it so that people who follow my blog can let me know what they think.</p>
<p>Here is the point of the game;</p>
<p>Select a US political party that you like (Democrat, Republican, Libertarian, Green, Constitution, Socialist, Communist and Independent).  I know Independent isn&#8217;t a party but there are a lot of people who claim they are.</p>
<p>Select the US state you support.</p>
<p>Build power for your state by banking money, attacking other players, doing party jobs and purchasing items for your party.</p>
<p>The more you have, the more you state has, the more states your party owns the better. Which ever party has the most states under its control will be in control of American politics.</p>
<p>For instance, at the writing of this blog the Independents own <a title="Hawaii stats on Politiwars" href="Well it has been a long time since I have posted something here. I have been coding hard on a new Ruby on Rails site. This one is a game of American politics.   Politiwars has been launched and after some preliminary debugging with a couple of friends I am ready to post it here so that people who follow my blog can let me know what they think.   Here is the point of the game;   Select a US political party that you like (Democrat, Republican, Libertarian, Green, Constitution, Socialist, Communist and Independent).   Select the US state you support.   Build power for your state by banking money, attacking other players, doing party jobs and purchasing items for your party.   The more you have, the more you state has, the more states your party owns the better. Which ever party has the most states under its control will be in control of American politics.   Features include a perpetual playing system (the game keeps going even when you are not playing), a flashmap (updated every hour) that lets you see who is in control of America, each state on the map has a link that will give you real time stats, and real time news feeds from Politico, CNN, Fox News, and the New York Times.   Take if for a spin and let me know what you think. I would appreciate your comments.">Hawaii</a> and the Constitution party owns <a title="Alabama stats on Politiwars" href="http://http://www.politiwars.com/us_state/AL">Alabama</a>.</p>
<p>Features include a perpetual playing system (the game keeps going even when you are not playing), a flashmap (updated every hour) that lets you see who is in control of America, each state on the map has a link that will give you real time stats, and real time news feeds from Politico, CNN, Fox News, and the New York Times.</p>
<p>So if you are tired of the other party running your state, do something about it!</p>
<p>Take if for a spin and let me know what you think. I would appreciate your comments.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=104&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/12/05/political-war-game-and-battles-for-america/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Resting your Rails Framework on Site5 while using Passenger</title>
		<link>http://brianbruijn.wordpress.com/2009/07/25/resting-your-rails-framework-on-site5-while-using-passenger/</link>
		<comments>http://brianbruijn.wordpress.com/2009/07/25/resting-your-rails-framework-on-site5-while-using-passenger/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 20:55:47 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[cwol.tv]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[killall]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[reset framework]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=101</guid>
		<description><![CDATA[So I just launched some new features to cwol.tv and determined that my current admin dashboard was insufficient for getting a good overview of what was happening with the site. I have spent most of the morning making it more useful, only to find out that my trusty killall -9 dispatch.fcgi was no longer working. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=101&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I just launched some new features to <a href="http://www.cwol.tv" target="_blank">cwol.tv</a> and determined that my current admin dashboard was insufficient for getting a good overview of what was happening with the site.</p>
<p>I have spent most of the morning making it more useful, only to find out that my trusty killall -9 dispatch.fcgi was no longer working. Hrm, could it be because I am now using passenger? I think so.</p>
<p>If you are running into the same issue with your <a href="http://www.site5.com" target="_blank">Site5 </a>account you can do a reset on the ruby framework as well. Use killall -9 ruby instead and that will take care of your framework reset issues. A little note: You might see an ugly Passenger screen, just refresh the screen one more time and your changes will be applied.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=101&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/07/25/resting-your-rails-framework-on-site5-while-using-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Championship Wrestling Online TV Fantasy Wrestling Now Launched</title>
		<link>http://brianbruijn.wordpress.com/2009/07/24/championship-wrestling-online-tv-fantasy-wrestling-now-launched/</link>
		<comments>http://brianbruijn.wordpress.com/2009/07/24/championship-wrestling-online-tv-fantasy-wrestling-now-launched/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 04:05:58 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[cwol.tv]]></category>
		<category><![CDATA[growth]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[championship wrestling online]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=97</guid>
		<description><![CDATA[I have not fallen off the face of the earth (just moved to Hawaii since my last post), I have also been coding like a mad man on a new addition to my CWOL.TV (Championship Wrestling Online) web site. The new addition is a fantasy wrestling component that allows one to start a career and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=97&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have not fallen off the face of the earth (just moved to Hawaii since my last post), I have also been coding like a mad man on a new addition to my CWOL.TV (Championship Wrestling Online) web site.</p>
<p>The new addition is a <a href="http://www.cwol.tv" target="_blank">fantasy wrestling</a> component that allows one to start a career and build it. It is a time based game that doesn&#8217;t stop. As one progresses in levels, they earn the opportunity to gain more wrestling moves, holdings (items that earn one income) and the ability to fight harder matches.</p>
<p>So, for the past couple of months I have been cranking out the code.</p>
<p>Now for the great news. The past few launches of web sites have been a pain to say the least. I blasted Site5 on more than one occasion. THAT HAS CHANGED!! Site5 has really stepped up their game with regard to <a href="http://www.site5.com" target="_blank">rails hosting</a>.</p>
<p>This was by far the easiest update I have ever done.</p>
<p>I do not say that lightly. The previous version of the site was still running on Rails 1.2. (What a difference 7 months can make).</p>
<p>The latest iteration of the site was a complete upgrade in development to Rails 2.3.2.</p>
<p>It was a seamless setup. I had to kill the old directory and start all over. Needless to say, it works great. I have been tailing the production log file to hopefully see the first person to come to the site since the launch. I hope this is what will put me over with regard to 1000 unique visitors in one month.</p>
<p>Here is to hoping.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=97&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/07/24/championship-wrestling-online-tv-fantasy-wrestling-now-launched/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Site5 MySQL Rails 2.2.2 Truncate and RMagick upgrade hell</title>
		<link>http://brianbruijn.wordpress.com/2009/02/21/site5-mysql-rails-222-truncate-and-rmagick-upgrade-hell/</link>
		<comments>http://brianbruijn.wordpress.com/2009/02/21/site5-mysql-rails-222-truncate-and-rmagick-upgrade-hell/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 06:43:53 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[RMagick]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[Rails 2.2.2]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=94</guid>
		<description><![CDATA[So this has been the month from hell for me as far as hosting with Site5. I thought it was bad trying to figure out how to get a site set up in a Rails 2.2.2 environment. That is nothing compared with dealing with the frustration of a MySQL upgrade while on vacation and an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=94&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So this has been the month from hell for me as far as hosting with Site5. I thought it was bad trying to figure out how to get a site set up in a Rails 2.2.2 environment. That is nothing compared with dealing with the frustration of a MySQL upgrade while on vacation and an upgrade to Rails 2.2.2 while over seas.</p>
<p>In both cases, the internet access is limited and I only have a small amount of time each day to dedicate to working on the sites I manage. I would love to actually be upgrading the sites and not dealing with the fixes caused by the hosting company.</p>
<p>I think the worst part of all of this is that Site5 didn&#8217;t send a notification (may have posted it in the forums, I don&#8217;t know, but who checks the forums every day) to let me know that the upgrades were happening. I was scrambling to find out what was going on.</p>
<p>Here are a few things I ran into.</p>
<p>MySQL – The storage engine hung the database some how during the upgrade. This did not happen for the one PHP site I have on the server. I submitted a ticket and they were able to restore from a back up. I had two rails sites that this issue affected.</p>
<p>Upgrade to Rails 2.2.2 – This upgrade would have worked great if I was not using the RMagick gem. It is a great thing that I have about 5 different sites with 5 different configurations. Some sites worked and some did not.</p>
<p>With the first ticket I submitted it was assumed that my site was not compatible with the  upgrade and I was told to freeze my gems. This didn&#8217;t make sense as I had 2 other sites that went through the upgrade just fine. After digging deeper, I noticed that my RMagick was hosing the site. So I submitted another ticket suggesting that RMagick and the gem for RMagick were out of sync. It was nice to see a response in the ticket that said they had upgraded the gem and all worked well again. Just as a side note, if you freeze your local gem for RMagick and it is different than the RMagick version on the server, your site will fail to start up as well.</p>
<p>The final issue I ran into is that I use the truncate method on the home page of the CWOL.TV site. Well after doing some research Rails 2.2.2 and Ruby 1.8.7 do not agree with regard to the truncate method. I tried several work arounds and none of them worked. If you have a suggestion that will work in a shared hosting environment, I am open to it From what I can tell, the recommendation is to downgrade to Ruby 1.8.6. Good luck trying to get a hosting company to go backwards on dozens if not hundreds of servers.</p>
<p>For now I had to eliminate the truncate code from the site and work on another solution. It will really suck if I have to write my own truncate method to work around this mess.</p>
<p>Well I am done venting for a while. I hope that you do not think I am down on Site5. I love the company and when you get someone who knows what they are doing in tech support you can usually get things done pretty quickly. But if there was one area that could stand to be improved it would be communication.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=94&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/02/21/site5-mysql-rails-222-truncate-and-rmagick-upgrade-hell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Application Error &#8211; Rails application failed to start properly &#8211; thank you puts</title>
		<link>http://brianbruijn.wordpress.com/2009/01/18/application-error-rails-application-failed-to-start-properly-thank-you-puts/</link>
		<comments>http://brianbruijn.wordpress.com/2009/01/18/application-error-rails-application-failed-to-start-properly-thank-you-puts/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 00:38:18 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[helpful tips]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[production server]]></category>
		<category><![CDATA[puts]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=91</guid>
		<description><![CDATA[So I learned another little fact about rails, puts and apache. In a production environment, they do not agree. I just made a bunch of changes for the wrestling website that I have been working on and finally got them all uploaded. When I went to check to see if they are working on the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=91&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I learned another little fact about rails, puts and apache. In a production environment, they do not agree.</p>
<p>I just made a bunch of changes for the <a title="Championship Wrestling Online.TV CWOL.TV" href="http://www.cwol.tv" target="_blank">wrestling website</a> that I have been working on and finally got them all uploaded. When I went to check to see if they are working on the server I was shocked to find out that my carefully laid plans had failed miserably.</p>
<p>Debugging in a live environment can be a very stressful endeavor.</p>
<p>Of course the code works in development but in live (because I do not have a staging environment that is exactly like my production) things can still go wrong. So, as I sift through the code I start with things left in that don&#8217;t need to be there.</p>
<p>As it turns out I had a puts statement that was left over from debugging and it was causing the server to have some major fits.</p>
<p>Moral of the story, remove your puts statements before you go live with the code.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=91&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/01/18/application-error-rails-application-failed-to-start-properly-thank-you-puts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Use Notepad ++ to tail log files in Windows</title>
		<link>http://brianbruijn.wordpress.com/2009/01/03/use-notepad-to-tail-log-files-in-windows/</link>
		<comments>http://brianbruijn.wordpress.com/2009/01/03/use-notepad-to-tail-log-files-in-windows/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 17:42:17 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[helpful tips]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[cwgwin]]></category>
		<category><![CDATA[notepad ++]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=88</guid>
		<description><![CDATA[So you want to be able to tail a log but you are developing in a windows environment. In the past you had to install cygwin to make that happen. Today that isn&#8217;t the case. I am not sure how long this has been in place but the guys at Notepad++ have really out done [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=88&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So you want to be able to tail a log but you are developing in a windows environment. In the past you had to install cygwin to make that happen. Today that isn&#8217;t the case.</p>
<p>I am not sure how long this has been in place but the guys at <a title="Notepad ++" href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank">Notepad++</a> have really out done themselves.</p>
<p>When developing in rails, it is nice to see what the development.log is showing. With most text editors you have to either refresh the text or close the editor and reopen it. In either case you still have to scroll to the bottom of the log.</p>
<p>With <a title="Notepad ++ Download" href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank">Notepad ++ 5.1</a> (which is what I am using) the log automatically updates and all you have to do is go view it. If this feature has been in place for a long time, GREAT!!!</p>
<p>However, when someone doesn&#8217;t know it is there, it is like putting glasses on and noticing how beautiful trees are for the first time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=88&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/01/03/use-notepad-to-tail-log-files-in-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Championship Wrestling Online.TV (www.cwol.tv) &#8211; my latest creation</title>
		<link>http://brianbruijn.wordpress.com/2009/01/02/championship-wrestling-online-tv-my-latest-creation/</link>
		<comments>http://brianbruijn.wordpress.com/2009/01/02/championship-wrestling-online-tv-my-latest-creation/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 21:33:47 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[agile development]]></category>
		<category><![CDATA[cwol.tv]]></category>
		<category><![CDATA[growth]]></category>
		<category><![CDATA[helpful tips]]></category>
		<category><![CDATA[wrestling]]></category>
		<category><![CDATA[championship wrestling online]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=83</guid>
		<description><![CDATA[So launching a new web site can, in no particular order, be tedious, fun and exciting. It is fun during the development process to see the site come together and start taking on a life of its own. What is more fun is to actually launch the site on time. It has been a while [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=83&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So launching a new web site can, in no particular order, be tedious, fun and exciting. It is fun during the development process to see the site come together and start taking on a life of its own.</p>
<p>What is more fun is to actually launch the site on time. It has been a while since I lunched a website (well, something that I have developed and not used prefabbed templates). <a title="Language News with Langorang" href="http://www.langorang.com" target="_blank">Langorang (the language news site)</a> was my first (since I started the home projects again) over a year ago.</p>
<p>I have had sites die, some are just moving along gradually (very gradually) building traffic. Others still will never be seen as a development of mine again. Gone are the days of owning 20 or 30 domain names hoping that I will build a site for each.</p>
<p>I have settled down and started working on one site or idea at a time. I have committed to only launching a site if there is a way to effectively manage it and I have finally gotten the instant-millionaire idea out of my head. One of my former employers used to say that it took 15 years for him to become an overnight success. I think I finally understanding them meaning of consistency over time multiplied by God. Took me long enough.</p>
<p>So, finally, after 10 months of development, 5 computer reformats, 1 hard drive crash and a complete rewrite of the original concept,  I am proud to launch <a title="Championship Wrestling Online.TV" href="http://www.cwol.tv" target="_blank">Championship Wrestling Online.TV (CWOL.TV)</a>.</p>
<p>CWOL.TV is a social networking site that allows professional wrestling fans host their own promotion. Each promotion comes complete with tools to manage live events, matches, wrestlers, titles, pictures, and videos.</p>
<p>The site just launched yesterday and the code is still in its infancy. I know there will be a lot of work to do if any significant amount of traffic starts to show up but for now I am enjoying the latest fruits of my labor.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=83&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/01/02/championship-wrestling-online-tv-my-latest-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>How to set up a Ruby on Rails 2.2.2 web site with Site5</title>
		<link>http://brianbruijn.wordpress.com/2009/01/02/how-to-set-up-a-ruby-on-rails-222-web-site-with-site5/</link>
		<comments>http://brianbruijn.wordpress.com/2009/01/02/how-to-set-up-a-ruby-on-rails-222-web-site-with-site5/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 17:21:56 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[helpful tips]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[rails 2.0]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=78</guid>
		<description><![CDATA[I have been using Site5 for over a year now and their system has been running Rails 1.2 since I started.  Well, they now have some Rails 2.2.2 servers and it took me a week to get everything figured out so that I could get a client site setup.  Here are the steps that I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=78&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using Site5 for over a year now and their system has been running Rails 1.2 since I started.  Well, they now have some Rails 2.2.2 servers and it took me a week to get everything figured out so that I could get a client site setup.  Here are the steps that I went through.</p>
<p>Setting up a web site on a Site 5 Rails 2.2.2 server.</p>
<p>The first thing you will need to do is setup your production database. This will be important later in the process of setting up your site.</p>
<p>Login to your Site5 account with your favorite SSH tool.</p>
<p>At any point you can use the command</p>
<p>$ cd ~</p>
<p>to get back to your root directory.</p>
<p>The first thing you will need to do is to run the rails script with the mysql database flag.</p>
<p>$ rails -d mysql nameyoursite</p>
<p>You will see a series of create statements and will also have a new directory.</p>
<p>Change directories into your new nameyoursite directory<br />
$ cd ~/nameyoursite</p>
<p>Next add a controller that will be used later.<br />
$ ruby script/generate controller site index</p>
<p>If all goes well, you will see the script run and add some more files to your system.</p>
<p>You will now need to move to the config directory to take care of a few things there.</p>
<p>$ cd ~/nameyoursite/config</p>
<p>In this directory, the first file to edit is the database.yaml. I use nano, others use VI. I say use whatever makes you comfortable.</p>
<p>$ nano database.yml</p>
<p>Ok, this is where it gets a little harry. In previous versions of Rails on Site5, the only thing you had to change was the values of the production database. However, all of the extra code causes errors with starting up the rails environment. Here is the only code you will need.<br />
<code><br />
production:<br />
adapter: mysql<br />
encoding: utf8<br />
database: nameyoursite_databasename<br />
pool: 5<br />
username: username<br />
password: password<br />
socket: /tmp/mysql.sock<br />
</code><br />
NOTE: This is important. I am not sure this is the case for all of the servers, however I found it to be true on the one I was working on. You will need to use the username and password that Site5 sent you for the SiteAdmin. The “additional users” for the database do not work as of the writing of this how-to.</p>
<p>After you have made the changes, save the file and exit.</p>
<p>Next you will need to edit the environment.rb file.</p>
<p>$ nano environment.rb</p>
<p>Remove the # from the line that looks like this</p>
<p># ENV['RAILS_ENV'] ||= &#8216;production&#8217;</p>
<p>and make it look like this</p>
<p>ENV['RAILS_ENV'] ||= &#8216;production&#8217;</p>
<p>Again save the changes and exit.</p>
<p>Now change directories back to the root of your site.</p>
<p>$ cd ~</p>
<p>Next, create a symbolic link, or symlink if you prefer, that will map your public directory to the public_html directory. It is important to note when creating the symlink to use a shorter name on the mapped name. I am not sure why and if someone could explain it to me I would greatly appreciate it.</p>
<p>$ ln -s  nameyoursite/pubilc/ public_html/nys</p>
<p>Now change the file permissions to make them executable with the system.</p>
<p>$ chmod -R 755  nameyoursite/*</p>
<p>From here you will want to make a back up of your public_html directory and to do that you can run the following command from the ~ directory.</p>
<p>$ mv public_html public_html_back</p>
<p>When that is completed you will now create a new symlink form your application public directory to the a linked public_html directory in the ~ of your site.</p>
<p>$ ln -s ~/nameyoursite/pubilc ~/public_html</p>
<p>Now you will need to add a .htaccess file to the application public directory.</p>
<p>This is what the file will look like.</p>
<p>&#8212;- Start .htaccess file – copy below this line &#8212;</p>
<p><code><br />
# General Apache options<br />
AddHandler fastcgi-script .fcgi<br />
AddHandler cgi-script .cgi<br />
Options +FollowSymLinks +ExecCGI<br />
# If you don't want Rails to look in certain directories,<br />
# use the following rewrite rules so that Apache won't rewrite certain requests<br />
#<br />
# Example:<br />
# RewriteCond %{REQUEST_URI} ^/notrails.*<br />
# RewriteRule .* - [L]<br />
# Redirect all requests not available on the filesystem to Rails<br />
# By default the cgi dispatcher is used which is very slow<br />
#<br />
# For better performance replace the dispatcher with the fastcgi one<br />
#<br />
# Example:<br />
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]<br />
RewriteEngine On<br />
# If your Rails application is accessed via an Alias directive,<br />
# then you MUST also set the RewriteBase in this htaccess file.<br />
#<br />
# Example:<br />
# Alias /myrailsapp /path/to/myrailsapp/public<br />
# RewriteBase /myrailsapp<br />
RewriteRule ^$ index.html [QSA]<br />
RewriteRule ^([^.]+)$ $1.html [QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]<br />
# In case Rails experiences terminal errors<br />
# Instead of displaying this message you can supply a file here which will be rendered instead<br />
#<br />
# Example:<br />
# ErrorDocument 500 /500.html<br />
ErrorDocument 500 "&lt;h2&gt;</code>Application error&lt;/h2&gt; Rails application failed to start properly&#8221;</p>
<p>&#8212; End .htaccess file – copy above this line &#8212;</p>
<p>Change directories to your application public directory.<br />
$ cd ~/nameyoursite/public<br />
Create a .htaccess file and populate it with the information above.<br />
$ nano .htaccess<br />
Save the file and exit.<br />
Next we want to set the route to our generated controller. So go back to the config directory.<br />
$ cd ~/nameyoursite/config<br />
Open up the routes.rb file with your favorite editor.<br />
$ nano routes.rb<br />
Uncomment the following line<br />
# map.root :controller =&gt; &#8220;welcome&#8221;<br />
and make it look like this<br />
map.root :controller =&gt; &#8220;site&#8221;</p>
<p>and finally remove the index.html file from the application public directory.</p>
<p>$ mv index.html index_old.html</p>
<p>Now all that is left is to go and visit the site to see if it all works.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=78&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2009/01/02/how-to-set-up-a-ruby-on-rails-222-web-site-with-site5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Ruby on Rails and AJAX to post to a database and submit a form</title>
		<link>http://brianbruijn.wordpress.com/2008/11/23/using-ruby-on-rails-and-ajax-to-post-to-a-database-and-submit-a-form/</link>
		<comments>http://brianbruijn.wordpress.com/2008/11/23/using-ruby-on-rails-and-ajax-to-post-to-a-database-and-submit-a-form/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 00:00:25 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[agile development]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[helpful tips]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[paypal]]></category>

		<guid isPermaLink="false">http://brianbruijn.wordpress.com/?p=74</guid>
		<description><![CDATA[I have spent most of the week trying to figure out how to submit a subscription button to PayPal and not rely on any return scripts to let me know the payment has been submitted. I thought Javascript may have been the answer and as it turned out, it was. AJAX is my friend. For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=74&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have spent most of the week trying to figure out how to submit a subscription button to PayPal and not rely on any return scripts to let me know the payment has been submitted.</p>
<p>I thought Javascript may have been the answer and as it turned out, it was. AJAX is my friend. For the second time this week I was able to usefully integrate AJAX into a site I am developing.</p>
<p>Here is the goal:<br />
Post the subscription plan selected to the database while submitting a PayPal subscription button.</p>
<p>Here is one way to do it using AJAX.</p>
<p>First, I didn&#8217;t want to show the subscription button. I think it would be too tempting to the user.  Hiding the button was accomplished using the CSS style display.</p>
<p><code><br />
&lt;div style="display:none"&gt;<br />
&lt;form id="name_of_your_form" action="action_url" method="post"&gt; -- code for your your PayPal button<br />
&lt;/form&gt;&lt;/div&gt;<br />
</code><br />
This will hide the button code, but still make it available for submission later. Note the id= parameter in the form tag. This will be used later when constructing the link_to_remote link.</p>
<p>The next thing is to write the AJAX enhanced link to make the magic work.</p>
<p>Rails makes this a very easy task. All you need is built into the framework. The link looks like this &#8230;</p>
<p><code><br />
&lt;%= link_to_remote "SUBSCRIBE", { :url =&gt; {:action =&gt; 'your_process_action', :controller =&gt; 'your_controller', :id =&gt; the_id_code_to_pass }, :complete =&gt; "$('name_of_your_form').submit()"}, :class =&gt; "css_class" %&gt;<br />
</code></p>
<p>Note in the :complete parameter, you will need to include the name of the form you wish to submit. Also if you are using multiple forms on the page, be sure to give each form a different id value.</p>
<p>The controller and action will need to contain your processing code and when it is finished the link will submit your form.</p>
<p>Thats it. Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianbruijn.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianbruijn.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianbruijn.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianbruijn.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianbruijn.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianbruijn.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianbruijn.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianbruijn.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianbruijn.wordpress.com&amp;blog=1544312&amp;post=74&amp;subd=brianbruijn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianbruijn.wordpress.com/2008/11/23/using-ruby-on-rails-and-ajax-to-post-to-a-database-and-submit-a-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b4bfb95bd64705e6eb6f56ba7d0f1eb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tszao</media:title>
		</media:content>
	</item>
	</channel>
</rss>
