<?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>Ruby On Rails by Alexey</title>
	<atom:link href="http://alexey01.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexey01.wordpress.com</link>
	<description>Only the Lions RoR's</description>
	<lastBuildDate>Mon, 30 Apr 2007 08:26:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alexey01.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ruby On Rails by Alexey</title>
		<link>http://alexey01.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alexey01.wordpress.com/osd.xml" title="Ruby On Rails by Alexey" />
	<atom:link rel='hub' href='http://alexey01.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Globalization AddOn Mk::2</title>
		<link>http://alexey01.wordpress.com/2007/04/30/globalization_mk2/</link>
		<comments>http://alexey01.wordpress.com/2007/04/30/globalization_mk2/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 08:24:46 +0000</pubDate>
		<dc:creator>alexey01</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://alexey01.wordpress.com/2007/04/30/globalization_mk2/</guid>
		<description><![CDATA[Hello ppl, Im sure everyone is enjoined(enjoinTed:) himself with globalization plugin, what a features, what abilities.. However one thing is veeerry disappearing me, (or maybe i dont know how-to), NO option to know status of translations&#8230; Okay, imagine we have Staticpage model with some fields to be translated. so in .rb &#62; translates :name, :abstract, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexey01.wordpress.com&amp;blog=866588&amp;post=10&amp;subd=alexey01&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello ppl,<br />
Im sure everyone is enjoined(enjoinTed:) himself with globalization plugin, what a features, what abilities..</p>
<p>However one thing is veeerry disappearing me, (or maybe i dont know how-to), NO option to know status of translations&#8230;</p>
<p><span id="more-10"></span><br />
Okay, imagine we have Staticpage model with some fields to be translated.<br />
so in .rb &gt;<br />
translates :name, :abstract, :body<br />
thats ok, rest of stuff is &#8220;automatically&#8221; mapped by globalization plugin.<br />
BUT (or butt:) ! in views/staticpages/list.rhtml you dont have anything that tell you about translation in different languages.<br />
so you need to shake a lizard and do some work, look here:<br />
in model:</p>
<p><strong>def translation_languages</strong><br />
<em>reply = &#8220;&#8221;<br />
LOCALES.each do | local |<br />
iso639 = local[0]<br />
flag = local[1].slice(3..4).downcase + &#8220;.png&#8221;<br />
if iso639 != &#8220;en&#8221;<br />
# do not display &#8220;en&#8221; language<br />
n = ModelTranslation.find :all,<br />
:conditions =&gt; ["globalize_languages.iso_639_1 = ? AND globalize_translations.item_id=? AND                         globalize_translations.language_id = globalize_languages.id", iso639, id],<br />
:joins =&gt; &#8220;INNER JOIN globalize_languages&#8221;<br />
if n.size == 0 #|| Locale.language_code != iso639<br />
tClass = &#8220;tr_incomplete&#8221;<br />
tTitle = &#8220;Not translated&#8221;<br />
else<br />
tTitle = &#8220;Translated&#8221;<br />
tClass = &#8220;tr_complete&#8221;<br />
end<br />
reply+= &#8220;&lt;span class=&#8217;#{tClass}&#8217; title=&#8217;#{tTitle}&#8217;&gt;<br />
&lt;img src=&#8217;/images/flags/#{flag}&#8217; /&gt;<br />
&lt;/span&gt;&#8221;<br />
end<br />
end<br />
return reply</em><br />
<strong>end</strong></p>
<p>when in list.rhtml:<br />
&lt;%= staticpage.translation_languages %&gt;<br />
will render all flags with &#8220;Translated&#8221; &#8220;Not Translated&#8221; titles.</p>
<p>you must have <strong>/images/flags/*.png</strong> appropriate flags, also you must have two css classes <strong>tr_incomplete</strong> and <strong>tr_complete.</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/alexey01.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/alexey01.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexey01.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexey01.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alexey01.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alexey01.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexey01.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexey01.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexey01.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexey01.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexey01.wordpress.com&amp;blog=866588&amp;post=10&amp;subd=alexey01&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alexey01.wordpress.com/2007/04/30/globalization_mk2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/93e83f35def2998975cd9da50e4e2426?s=96&#38;d=identicon" medium="image">
			<media:title type="html">alexey</media:title>
		</media:content>
	</item>
		<item>
		<title>Act As Debug 0.0.1</title>
		<link>http://alexey01.wordpress.com/2007/03/12/act_as_debug/</link>
		<comments>http://alexey01.wordpress.com/2007/03/12/act_as_debug/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 15:18:10 +0000</pubDate>
		<dc:creator>alexey01</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://alexey01.wordpress.com/2007/03/12/xcv/</guid>
		<description><![CDATA[Hello, i&#8217;ve thinked of such plugin as good helper to &#8220;debug&#8221; your controller/action/model/view well and so it will be available to all of them. However i tried many ways todo effricient debug (thru db logging, exceptions caught etc..), but none of them was perfect to meet my needs. So, why not to make my plugin [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexey01.wordpress.com&amp;blog=866588&amp;post=7&amp;subd=alexey01&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello, i&#8217;ve thinked of such plugin as good helper to &#8220;debug&#8221; your controller/action/model/view well and so it will be available to all of them.</p>
<p>However i tried many ways todo effricient debug (thru db logging, exceptions caught etc..), but none of them was perfect to meet my needs.</p>
<p>So, why not to make my plugin that i can use anywhere ?</p>
<p>Installation:</p>
<p>Do <strong><tt>svn export svn://rubyforge.org/var/svn/act-as-debug</tt> </strong>at your vendor/plugins folder to get latest version.</p>
<p>|| read more || go to <a href="http://rubyforge.org/projects/act-as-debug/">Rubyforge</a> to download.</p>
<p><span id="more-7"></span></p>
<p>This plugin come to replace <strong>logger.info</strong> (not actually replace this method) to be much more effricient and detailed.</p>
<p>to use it, simply do:<br />
<strong>act_as_debug</strong> &lt;VARIABLE&gt;, {OPTIONS}<br />
&lt;VARIABLE&gt; any type to be inspected.<br />
OPTIONS:<br />
:file =&gt; &#8220;filename&#8221; -will be use /log/ subfolder to append log to &lt;filename&gt; file.</p>
<p>samples:</p>
<p><strong>act_as_debug @pages</strong> will log to default application log.<br />
<strong>act_as_debug</strong> <strong>@pages, :file =&gt; &#8220;pages_inspect&#8221; </strong>will append to log file &#8216;pages_inspect.log&#8217; in /log/ folder.</p>
<p>Also you can use debug instead of act_as_debug. (alias)</p>
<p>More will come soon !!</p>
<p>at <a href="http://rubyforge.org/projects/act-as-debug/">RubyForge</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/alexey01.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/alexey01.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexey01.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexey01.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alexey01.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alexey01.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexey01.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexey01.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexey01.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexey01.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexey01.wordpress.com&amp;blog=866588&amp;post=7&amp;subd=alexey01&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alexey01.wordpress.com/2007/03/12/act_as_debug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/93e83f35def2998975cd9da50e4e2426?s=96&#38;d=identicon" medium="image">
			<media:title type="html">alexey</media:title>
		</media:content>
	</item>
	</channel>
</rss>
