<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: ROR code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 03:18:55 GMT</pubDate>
    <description>DZone Snippets: ROR code</description>
    <item>
      <title>create new rails rake task</title>
      <link>http://snippets.dzone.com/posts/show/5185</link>
      <description>Create new task for /unit/helpers/*_test.rb&lt;br /&gt;&lt;br /&gt;Rakefile &lt;br /&gt;&lt;code&gt;&lt;br /&gt;namespace :test do&lt;br /&gt;  Rake::TestTask.new(:helpers) do |t|&lt;br /&gt;    t.libs &lt;&lt; "test"&lt;br /&gt;    t.pattern = 'test/unit/helper/*_test.rb'&lt;br /&gt;    t.verbose = true&lt;br /&gt;  end&lt;br /&gt;&lt;br /&gt;  Rake::Task['test:helpers'].invoke&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 28 Feb 2008 15:02:33 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5185</guid>
      <author>bublik (Voloshin Ruslan)</author>
    </item>
    <item>
      <title>Ruby On Rails With Apache and mod_proxy using .htaccess</title>
      <link>http://snippets.dzone.com/posts/show/4086</link>
      <description>If you want your rails app in the same apache html directory, use a .htaccess like this :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;RewriteEngine   on&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;RewriteRule     (.*) http://localhost:3000/$1 [P]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;All resources that don't exist in your html directory will be requested ( using proxy) from mongrel.</description>
      <pubDate>Thu, 31 May 2007 14:53:20 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4086</guid>
      <author>comechao (Tiago Bastos)</author>
    </item>
    <item>
      <title>Truncate</title>
      <link>http://snippets.dzone.com/posts/show/1866</link>
      <description>// Truncate text in ruby on rails views&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;%= truncate(events.name, 50) %&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 08 Apr 2006 22:18:14 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1866</guid>
      <author>myles (Myles Braithwaite)</author>
    </item>
    <item>
      <title>ROR (rotate-right) function</title>
      <link>http://snippets.dzone.com/posts/show/1119</link>
      <description>&lt;code&gt;&lt;br /&gt;    ROR: func ["Rotate Right" s [series!] n [integer!]][&lt;br /&gt;        n: n // length? s&lt;br /&gt;        append copy at s ((length? s) - (n - 1)) copy/part s (length? s) - n&lt;br /&gt;    ]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 10 Jan 2006 06:09:37 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1119</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
