<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to create a lookup table in Ruby on Rails</title>
	<atom:link href="http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/</link>
	<description>A technical blog</description>
	<lastBuildDate>Wed, 24 Mar 2010 15:18:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: bombaler</title>
		<link>http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/comment-page-1/#comment-269</link>
		<dc:creator>bombaler</dc:creator>
		<pubDate>Tue, 09 Feb 2010 08:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/#comment-269</guid>
		<description>Do you have a sample code that displays car type loolup table using select_tag in a form?</description>
		<content:encoded><![CDATA[<p>Do you have a sample code that displays car type loolup table using select_tag in a form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m</title>
		<link>http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/comment-page-1/#comment-214</link>
		<dc:creator>m</dc:creator>
		<pubDate>Wed, 14 Oct 2009 18:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/#comment-214</guid>
		<description>hi, i know this is an old post but here are a couple of things i ran into:

- on Rails 2.3.4 with Postgres i had an error until i moved the CarType.create statements inside self.up

- how do i add new types later? do new types go in separate migrations (which splits up the source for the types across multiple files?)?

i tried adding a new type to the migration but no matter what command i execute--db:reset or rollback or migrate VERSON--i can&#039;t get the migration to execute again.</description>
		<content:encoded><![CDATA[<p>hi, i know this is an old post but here are a couple of things i ran into:</p>
<p>- on Rails 2.3.4 with Postgres i had an error until i moved the CarType.create statements inside self.up</p>
<p>- how do i add new types later? do new types go in separate migrations (which splits up the source for the types across multiple files?)?</p>
<p>i tried adding a new type to the migration but no matter what command i execute&#8211;db:reset or rollback or migrate VERSON&#8211;i can&#8217;t get the migration to execute again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mani</title>
		<link>http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/comment-page-1/#comment-204</link>
		<dc:creator>Mani</dc:creator>
		<pubDate>Thu, 14 May 2009 18:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/#comment-204</guid>
		<description>Dude this is so simple and useful. I was looking for the best way of setting up a simple lookup table in Rails and after seeing your solution, I can&#039;t believe I didn&#039;t think of it myself.

Thanks!</description>
		<content:encoded><![CDATA[<p>Dude this is so simple and useful. I was looking for the best way of setting up a simple lookup table in Rails and after seeing your solution, I can&#8217;t believe I didn&#8217;t think of it myself.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Elsner</title>
		<link>http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/comment-page-1/#comment-197</link>
		<dc:creator>Rob Elsner</dc:creator>
		<pubDate>Thu, 01 Jan 2009 00:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.layer2.org/2007/10/18/how-to-create-a-lookup-table-in-ruby-on-rails/#comment-197</guid>
		<description>You are my hero.  This is the best example I&#039;ve found of lookup tables and how the Rails way is a little confusing to beginners.  Awesome.</description>
		<content:encoded><![CDATA[<p>You are my hero.  This is the best example I&#8217;ve found of lookup tables and how the Rails way is a little confusing to beginners.  Awesome.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.376 seconds -->
<!-- Cached page served by WP-Cache -->
