<?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>Jivko&#039;s Blog &#187; Ruby on Rails</title>
	<atom:link href="http://blog.jivko.net/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jivko.net</link>
	<description>Jivko Georgiev Weblog</description>
	<lastBuildDate>Sun, 04 Apr 2010 20:47:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ruby: Най-добрите практики</title>
		<link>http://blog.jivko.net/2010/03/23/ruby-%d0%bd%d0%b0%d0%b9-%d0%b4%d0%be%d0%b1%d1%80%d0%b8%d1%82%d0%b5-%d0%bf%d1%80%d0%b0%d0%ba%d1%82%d0%b8%d0%ba%d0%b8/</link>
		<comments>http://blog.jivko.net/2010/03/23/ruby-%d0%bd%d0%b0%d0%b9-%d0%b4%d0%be%d0%b1%d1%80%d0%b8%d1%82%d0%b5-%d0%bf%d1%80%d0%b0%d0%ba%d1%82%d0%b8%d0%ba%d0%b8/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 12:13:02 +0000</pubDate>
		<dc:creator>jivko</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Блог]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Руби]]></category>

		<guid isPermaLink="false">http://blog.jivko.net/?p=361</guid>
		<description><![CDATA[&#8220;Ruby Best Practices&#8221;  - Книгата е свободна за сваляне]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-362" title="Ruby: Най-добрите практики" src="http://blog.jivko.net/wp-content/uploads/2010/03/rubybp.png" alt="Ruby: Най-добрите практики" width="277" height="366" /></p>
<p>&#8220;<a href="http://rubybestpractices.com/" target="_blank">Ruby Best Practices</a>&#8221;  - Книгата е свободна за сваляне</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jivko.net/2010/03/23/ruby-%d0%bd%d0%b0%d0%b9-%d0%b4%d0%be%d0%b1%d1%80%d0%b8%d1%82%d0%b5-%d0%bf%d1%80%d0%b0%d0%ba%d1%82%d0%b8%d0%ba%d0%b8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Генериране на Google, Yahoo sitemap.xml в rails сайт</title>
		<link>http://blog.jivko.net/2008/02/12/google-yahoo-sitemap/</link>
		<comments>http://blog.jivko.net/2008/02/12/google-yahoo-sitemap/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 23:14:35 +0000</pubDate>
		<dc:creator>jivko</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Блог]]></category>

		<guid isPermaLink="false">http://blog.jivkobg.com/2008/02/12/%d0%b3%d0%b5%d0%bd%d0%b5%d1%80%d0%b8%d1%80%d0%b0%d0%bd%d0%b5-%d0%b4%d0%b8%d0%bd%d0%b0%d0%bc%d0%b8%d1%87%d0%bd%d0%be-google-yahoo-sitemapxml-%d0%b2-rails-%d1%81%d0%b0%d0%b9%d1%82/</guid>
		<description><![CDATA[Динамично генериране на sitemap.xml в ruby on rails сайт controller: def sitemap @posts = Post.find :all render :layout =&#62; false end view: xml.instruct! xml.urlset "xmlns" =&#62; "http://www.sitemaps.org/schemas/sitemap/0.9" do xml.url do xml.loc "http://www.YourSite.com/" xml.lastmod w3c_date(Time.now) xml.changefreq "always" end @posts.each do &#124;post&#124; xml.url do xml.loc url_for(:only_path =&#62; false, :controller =&#62; 'home', :action =&#62; 'details', :id =&#62; post) [...]]]></description>
			<content:encoded><![CDATA[<p>Динамично генериране на sitemap.xml в ruby on rails сайт</p>
<p>controller:</p>
<pre>
def sitemap
  @posts = Post.find :all
  render :layout =&gt; false
end</pre>
<p>view:</p>
<pre>
xml.instruct!
xml.urlset "xmlns" =&gt; "http://www.sitemaps.org/schemas/sitemap/0.9" do
  xml.url do
    xml.loc         "http://www.YourSite.com/"
    xml.lastmod     w3c_date(Time.now)
    xml.changefreq  "always"
  end
  @posts.each do |post|
    xml.url do
      xml.loc         url_for(:only_path =&gt; false, :controller =&gt; 'home', :action =&gt; 'details', :id =&gt; post)
      xml.lastmod     w3c_date(post.created_at)
      xml.changefreq  "weekly"
      xml.priority    0.9
    end
  end
end</pre>
<p>helper:</p>
<pre>
def w3c_date(date)
  date.utc.strftime("%Y-%m-%dT%H:%M:%S+00:00")
end</pre>
<p>routes:<br />
<code><br />
#Sitemap<br />
map.connect "sitemap.xml", :controller =&gt; "home", :action =&gt; "sitemap"</code></p>
<p>Добавете Вашият sitemap в Google <a href="http://www.google.com/webmasters/sitemap" title="Google Sitemap" target="_blank">http://www.google.com/webmasters/sitemap</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jivko.net/2008/02/12/google-yahoo-sitemap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
