<?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"
	>
<channel>
	<title>Comments on: ActiveRecord Associative Array Directly Into The Database</title>
	<atom:link href="http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/</link>
	<description>About Technology in My Life</description>
	<pubDate>Wed, 07 Jan 2009 01:35:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: chad</title>
		<link>http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/#comment-1188</link>
		<dc:creator>chad</dc:creator>
		<pubDate>Thu, 03 Jul 2008 04:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/#comment-1188</guid>
		<description>I wrote a slightly different &lt;a href="http://www.rubyrescue.com/2008/06/30/acts_as_setting/" rel="nofollow"&gt;version&lt;/a&gt;  that uses activerecord and the database (no need for xml here), but that creates members on the class to make the calls much faster and save the database hits.</description>
		<content:encoded><![CDATA[<p>I wrote a slightly different <a href="http://www.rubyrescue.com/2008/06/30/acts_as_setting/" rel="nofollow">version</a>  that uses activerecord and the database (no need for xml here), but that creates members on the class to make the calls much faster and save the database hits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert shell</title>
		<link>http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/#comment-56</link>
		<dc:creator>robert shell</dc:creator>
		<pubDate>Mon, 18 Feb 2008 21:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/#comment-56</guid>
		<description>If for like this, you may like the plugin I wrote for my setting. (see http://biorails.org/svn/biorails/plugins/alces_act_as_setting/ ) Its also add the ability to use the setting name as a class level method as well as a array eg.
 
 SystemSetting['xxx'] 
 SystemSetting.xxx  
 SystemSetting.xxx = 'ss' 

To use is a simple acts_as_setting directive with a link to a xml file to define names and load initial values from xml.

class SystemSetting  "#{RAILS_ROOT}/config/system_settings.yml"
end</description>
		<content:encoded><![CDATA[<p>If for like this, you may like the plugin I wrote for my setting. (see <a href="http://biorails.org/svn/biorails/plugins/alces_act_as_setting/" rel="nofollow">http://biorails.org/svn/biorails/plugins/alces_act_as_setting/</a> ) Its also add the ability to use the setting name as a class level method as well as a array eg.</p>
<p> SystemSetting['xxx']<br />
 SystemSetting.xxx<br />
 SystemSetting.xxx = &#8217;ss&#8217; </p>
<p>To use is a simple acts_as_setting directive with a link to a xml file to define names and load initial values from xml.</p>
<p>class SystemSetting  &#8220;#{RAILS_ROOT}/config/system_settings.yml&#8221;<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr eel</title>
		<link>http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/#comment-52</link>
		<dc:creator>Mr eel</dc:creator>
		<pubDate>Sat, 16 Feb 2008 23:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/02/13/activerecord-associative-array-directly-into-the-database/#comment-52</guid>
		<description>That is indeed, very simple and elegant.

Perhaps the only improvement I could suggest is caching the records as they are returned. If you happen to access a particular setting repeatedly, you'll end up with multiple database hits.</description>
		<content:encoded><![CDATA[<p>That is indeed, very simple and elegant.</p>
<p>Perhaps the only improvement I could suggest is caching the records as they are returned. If you happen to access a particular setting repeatedly, you&#8217;ll end up with multiple database hits.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
