<?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/"
	>

<channel>
	<title>Random Ramblings &#187; Ruby on Rails</title>
	<atom:link href="http://www.codedivision.com/modules/wordpress/category/dev-comments/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedivision.com/modules/wordpress</link>
	<description></description>
	<lastBuildDate>Tue, 29 Mar 2011 10:47:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Keeping up with the train &#8211; Lots of work for little features</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 23:20:36 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/</guid>
		<description><![CDATA[Ruby on Rails 2 has been out for a good month or two by now. And my hosting provider, Dreamhost, added the gems to support 2.0.2 just after New Years Eve, So obviously I had to upgrade the Laurelin Community Site. I had been on it already before christmas. But motivation was lacking and it [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby on Rails 2 has been out for a good month or two by now. And my hosting provider, Dreamhost, added the gems to support 2.0.2 just after New Years Eve, So obviously I had to upgrade the Laurelin Community Site.</p>
<p>I had been on it already before christmas. But motivation was lacking and it turned out it required some modifications to get going. Specifically the wise guys of Rails Core decided nobody was using pagination so it had to go. Or possibly they decided they where unable to improve it and hoped the community would fill the gap with something better? So the old pagination stuff was kicked out of Rails 2 and replaced with an optional (and likely very unsupported) plugin while telling everyone to use something else.</p>
<p>So I turned to will_pagination as it seemed like it was the most recommended one of the young Rails 2 scene. It appears to work well but I had to redo my pagination control. So far I have just hacked something ugly together&#8230; seems to work with the ugly site anyway.</p>
<p>The biggest hurdle then was that my auth_generator-based user-login system seems to have been unsupported for ages. And it had several issues with Rails 2. And that my use of pagination with the  acts_as_taggable_on_steroids plugin had to be changed. Both was fairly simply. The latter would have been tricky if I hadn&#8217;t found a <a href="http://blog.wolfman.com/articles/2007/07/30/paginating-acts_as_taggable-with-will_paginate">trick in a comment on on a blog</a>. The actual proposed fix in the main blog entry being way too much work for me to bother with <img src='http://www.codedivision.com/modules/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>On the up-side it seems that Rails 2 run a bit faster than Rails 1 did. Maybe it&#8217;s just placebo tho. I guess I&#8217;ll have to see about that.</p>
<p>Then I fixed a slight bug on the site (if someone used &#8216; in a name that was to show up in the Housing Directory. It would no longer show markers on the map when page loaded). And added Kinship profile links that use the kinship name instead of their id. And off to release it went. So it is now live on Rails 2.</p>
<p>Post release I did get one major annoyance. Mainly that if I use the same cookie name as the Rails 1 site I&#8217;d have people throwing exceptions when they first returned to the site. Changing the cookie name should have fixed that. I hope <img src='http://www.codedivision.com/modules/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The rise of a new site</title>
		<link>http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 14:57:10 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lord of the Rings Online]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/</guid>
		<description><![CDATA[Since my time in Vanguard was very short I never really got around to play much with Ruby on Rails. I suppose I could continue to work on that project just for the hell of it. But I know myself well enough to know that for spare time projects I work better if I have [...]]]></description>
			<content:encoded><![CDATA[<p>Since my time in Vanguard was very short I never really got around to play much with Ruby on Rails. I suppose I could continue to work on that project just for the hell of it. But I know myself well enough to know that for spare time projects I work better if I have a personal use for the project. So here comes a new one.</p>
<p>I replaced Vanguard with Lord of the Rings Online and it turns out the community tools are not all that developed. In fact there is a forum for each server and that&#8217;s pretty much it. So it&#8217;s up to the inhabitants of the servers to figure out how to organize their community and how they want to communicate with each other.</p>
<p>So far we have had forum stickies of kinships and events that one person took the responsibility of updating. This has rarely worked well because we all just want to play the game really. Spending a lot of time on manually updating lists becomes boring after a while. And even the most dedicated people still have other things to do in their spare time anyway.</p>
<p>So I figured it was a good project to work on in Rails. And now it is sort of live here: lotro.houseofkenja.com.</p>
<p>I made some improvements from my previous flirt with Rails. I now have both a development and a production database. And I use the database migration tools in Rails to make update my production database with the latest developments. The latter still takes some effort to get right tho. Since it is much easier to build databases directly in the development database than writing migration files. So I have to hash out the migration files after developing the code&#8230; Not too smart as they then don&#8217;t get tested much before I release the code to production. But maybe I just haven&#8217;t found tools yet to make this easer.</p>
<p>One issue with Rails that came up today is really mind-boggling tho. Having coded Java for years I am so used to not having to work much with character encodings. Everything Java does is in Unicode so you just need to handle the places where things come in and out of it. And mostly it is easy to take care of.</p>
<p>Turns out Rails is not quite ready for the Global Village idea. On an app where everything runs in UTF-8 I still had to apply some hacks to actually get the text displayed correctly. Turns out Rails (or Ruby?) has no support for encodings so it messed up UTF-8 names coming out of my database even tho the web pages are also encoded in UTF-8. Annoying but it seems the hacks work. So one can live with it.</p>
<p>Apart from that I have no real new things to say about Rails. I am getting a feeling that even tho the framework gets a lot of hype it seems there is not that much community around it. Specifically I am finding a lot of stale &#8216;documentation&#8217; on their WIKI and I find it hard to Google myself to straight answers. And a lot of the community solutions to common issues seems half-baked and either dead or crawling very slowly. I suppose I have been pampered in the Java world where a lot of companies are sponsoring projects and people have had a lot longer to come up with good solutions.</p>
<p>Well. More from the battle-front as this project develops.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>House of Kenja &#8211; Vanguard:SoH Site</title>
		<link>http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 11:21:43 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Vanguard: SoH]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/</guid>
		<description><![CDATA[Over the last month or so I have been busy in a new game. And as usual I have found it to be a good excuse to try out some new things. Specifically I felt I needed a place to store some information and I couldn&#8217;t find a good desktop tool for it. So instead [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last month or so I have been busy in a new game. And as usual I have found it to be a good excuse to try out some new things. Specifically I felt I needed a place to store some information and I couldn&#8217;t find a good desktop tool for it. So instead I decided to make a site for it.</p>
<p>Of course to be useful for quick data entry I needed to add a bunch of AJAXy stuff. Having already had experience with the Dojo toolkit it would have been the easy way to go. But then I needed some backend to power it too. PHP would have been an obvious choice since it is so easy to host. But data persistence is so annoying to setup. Instead I found out that Dreamhost (where I have an account) also supports Ruby on Rails.</p>
<p>Having made my salary on Java development these last years I have, of course, heard a lot of hype about the framework. So i figured it would be a good time as any to give it a spin and see what makes it so great.</p>
<p>Getting off the ground is super easy it seems. Rails is based on conventions and code generators. So getting a quick CRUD site together is as easy as running a script, configure data access and generate some boilerplate code for the tables you want to access. And you are off.</p>
<p>But that is where the chain breaks a little. One of the comments I have seen about Rails is that compared to Java persistence frameworks like Hibernate (that I learned entirely from the manual on their website) documentation is much better for Rails. And you wouldn&#8217;t need to buy books. Strange tho since the most prominent links on their documentation page is two books and their &#8216;manual&#8217; is a couple of descriptions of add ons to the framework and not the framework basics itself. So basically you are left with a conventions-based framework that only has documentation the the actual API. Yay!</p>
<p>But Google (or any search engine really) is your friend here. Good queries and  some patience sifting though mailing lists and blogs will eventually answer most questions.</p>
<p>The actual framework is nice enough once you get to know it. I don&#8217;t really like the syntax of Ruby very much. After years of C-based languages I miss the easily read block markers that curly braces make. Having an &#8216;end&#8217; keyword blends into the code too easily even in well-formatted text IMO.</p>
<p>As for the actual site it will flow with my motivation to play the game. And Vanguard is somewhat down that scale right now. I got a basic site up with room for most of the diplomacy essentials. Cards and NPC decks. I also added the option for registered users to build their own deck but it does not do much other than just your cards.</p>
<p>I&#8217;ve gotten a lot of work to add quests to the site also. Mostly with the main focus still being on diplomacy. I&#8217;ll likely finish it up sometime soon if I get a spare moment. Apart from that my work on the site is a little dubious. But then as long as I am the only real user it does not matter too much I suppose.</p>
<p>It&#8217;s been placed on my &#8216;House of Kenja&#8217; domain like the Dark and Light map since it is where I do my &#8216;gaming stuff&#8217;.<br />
The site can be found here: <a target="_blank" href="http://vanguard.houseofkenja.com">House of Kenja &#8211; Vanguard site.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

