<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - [Share]How to Call Library File From Model]]></title>
		<link>http://railsforum.com/viewtopic.php?id=49205</link>
		<description><![CDATA[The most recent posts in [Share]How to Call Library File From Model.]]></description>
		<lastBuildDate>Mon, 18 Jun 2012 09:22:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[[Share]How to Call Library File From Model]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=153375#p153375</link>
			<description><![CDATA[<p>You may experience this problem while developing web application with Ruby On Rails. You have succeeded calling library on your controller, but you fail to call it from your model. How to deal with such problem?</p><p>To deal with such problem, you only need to replace one word on your codes. If you call library from your controller like this one.</p><p>include Your_Library_Name</p><p>Then you have to call library from your model like this one.</p><p>extend Your_Library_Name</p><p>Please notice this one. To call library from your model, you need to replace include with extend. I have tried it and it works for Rails 2.3.7 along with Ruby 1.8.7. Please let me know if it doesn&#039;t work for yours.</p><p>Source : <a href="http://www.kevinhq.com/2012/01/rails-calling-library-from-model.html">http://www.kevinhq.com/2012/01/rails-ca &#133; model.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (kevinhq)]]></author>
			<pubDate>Mon, 18 Jun 2012 09:22:01 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=153375#p153375</guid>
		</item>
	</channel>
</rss>
