<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/ruby/tags/rails</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 08 Sep 2008 07:57:13 GMT</pubDate>
<item>
<title>(Ruby) clean rails tmp file,log file and others file.then tar it! - crazylion</title>
<link>http://snipplr.com/view/7225/clean-rails-tmp-filelog-file-and-others-filethen-tar-it/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 11 Jul 2008 13:22:09 GMT</pubDate>
<guid>http://snipplr.com/view/7225/clean-rails-tmp-filelog-file-and-others-filethen-tar-it/</guid>
</item>
<item>
<title>(Ruby) Función básica para eliminiar acentos en minúsculas - tonic</title>
<link>http://snipplr.com/view/6808/funcin-bsica-para-eliminiar-acentos-en-minsculas/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 20 Jun 2008 05:55:22 GMT</pubDate>
<guid>http://snipplr.com/view/6808/funcin-bsica-para-eliminiar-acentos-en-minsculas/</guid>
</item>
<item>
<title>(Ruby) display date as ISO 8601 - jhenry</title>
<link>http://snipplr.com/view/6579/display-date-as-iso-8601/</link>
<description><![CDATA[ <p>alternative to using DateTime.now.to_s</p> ]]></description>
<pubDate>Wed, 04 Jun 2008 14:34:22 GMT</pubDate>
<guid>http://snipplr.com/view/6579/display-date-as-iso-8601/</guid>
</item>
<item>
<title>(Ruby) YAML ActiveRecord Dump - markpercival</title>
<link>http://snipplr.com/view/5970/yaml-activerecord-dump/</link>
<description><![CDATA[ <p>I didn't create this but I use it all the time. Just drop it in lib/tasks/fixtures.rake</p> ]]></description>
<pubDate>Wed, 23 Apr 2008 16:58:04 GMT</pubDate>
<guid>http://snipplr.com/view/5970/yaml-activerecord-dump/</guid>
</item>
<item>
<title>(Ruby) Haml 'nesting within a tag' error - cczona</title>
<link>http://snipplr.com/view/5594/haml-nesting-within-a-tag-error/</link>
<description><![CDATA[ <p>"When using haml, an HTML tag is represented using %tagname, but in the case of an HTML tag with attributes, the representation is %tagname{:attribute => value}.

It turns out there must be no whitespace between %tagname and {:attribute => value}.  This was the source of a lot of errors when I was trying to write haml forms, since the error message was the cryptic: Illegal Nesting: Nesting within a tag that already has content is illegal."</p> ]]></description>
<pubDate>Fri, 28 Mar 2008 11:28:26 GMT</pubDate>
<guid>http://snipplr.com/view/5594/haml-nesting-within-a-tag-error/</guid>
</item>
<item>
<title>(Ruby) What version of Ruby and Rails is this using? - cczona</title>
<link>http://snipplr.com/view/5545/what-version-of-ruby-and-rails-is-this-using/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 24 Mar 2008 14:25:44 GMT</pubDate>
<guid>http://snipplr.com/view/5545/what-version-of-ruby-and-rails-is-this-using/</guid>
</item>
<item>
<title>(Ruby) Add Include Blank argument to Option Helpers - brianjlandau</title>
<link>http://snipplr.com/view/5364/add-include-blank-argument-to-option-helpers/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 10 Mar 2008 22:55:18 GMT</pubDate>
<guid>http://snipplr.com/view/5364/add-include-blank-argument-to-option-helpers/</guid>
</item>
<item>
<title>(Ruby) My .railsrc - ctran</title>
<link>http://snipplr.com/view/5135/my-railsrc/</link>
<description><![CDATA[ <p>My .railsrc</p> ]]></description>
<pubDate>Wed, 20 Feb 2008 20:26:54 GMT</pubDate>
<guid>http://snipplr.com/view/5135/my-railsrc/</guid>
</item>
<item>
<title>(Ruby) A monkey-patch to activerecord to reconnect after it loses the connection to the mysql server - esad</title>
<link>http://snipplr.com/view/4195/a-monkeypatch-to-activerecord-to-reconnect-after-it-loses-the-connection-to-the-mysql-server/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 26 Nov 2007 01:01:36 GMT</pubDate>
<guid>http://snipplr.com/view/4195/a-monkeypatch-to-activerecord-to-reconnect-after-it-loses-the-connection-to-the-mysql-server/</guid>
</item>
<item>
<title>(Ruby) test snippet - madra</title>
<link>http://snipplr.com/view/3854/test-snippet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 07 Oct 2007 03:19:53 GMT</pubDate>
<guid>http://snipplr.com/view/3854/test-snippet/</guid>
</item>
<item>
<title>(Ruby) Pager for lots o' data - Agent</title>
<link>http://snipplr.com/view/3409/pager-for-lots-o-data/</link>
<description><![CDATA[ <p>This function (intended to be an application or view helper) creates a pager bar useful for navigating many pages. It shows the first, last, current, nearby, and halfway-to-end pages. It looks like this (where the current page is 11):

< 1 ... 5 ... 10 11 12 ... 14 15 >

The pagerBar function takes two parameters: a RoR paginator, and an anchor that will be attached to all the links.</p> ]]></description>
<pubDate>Sat, 28 Jul 2007 12:04:47 GMT</pubDate>
<guid>http://snipplr.com/view/3409/pager-for-lots-o-data/</guid>
</item>
<item>
<title>(Ruby) content_tag (modified): Part 1 (app helper) - imakethings</title>
<link>http://snipplr.com/view/3060/contenttag-modified-part-1-app-helper/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 27 Jun 2007 19:17:42 GMT</pubDate>
<guid>http://snipplr.com/view/3060/contenttag-modified-part-1-app-helper/</guid>
</item>
<item>
<title>(Ruby) Time Zones By Country Using Rails TZInfo - fortuity</title>
<link>http://snipplr.com/view/2764/time-zones-by-country-using-rails-tzinfo/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 31 May 2007 11:54:47 GMT</pubDate>
<guid>http://snipplr.com/view/2764/time-zones-by-country-using-rails-tzinfo/</guid>
</item>
<item>
<title>(Ruby) Update A Rails Project - jpowell</title>
<link>http://snipplr.com/view/2731/update-a-rails-project/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 25 May 2007 15:26:22 GMT</pubDate>
<guid>http://snipplr.com/view/2731/update-a-rails-project/</guid>
</item>
<item>
<title>(Ruby) Rake Migrate (Backwards or Previous Version) Example - jpowell</title>
<link>http://snipplr.com/view/2729/rake-migrate-backwards-or-previous-version-example/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 25 May 2007 15:23:36 GMT</pubDate>
<guid>http://snipplr.com/view/2729/rake-migrate-backwards-or-previous-version-example/</guid>
</item>
<item>
<title>(Ruby) Rake Migrate (newest method) - jpowell</title>
<link>http://snipplr.com/view/2728/rake-migrate-newest-method/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 25 May 2007 15:22:34 GMT</pubDate>
<guid>http://snipplr.com/view/2728/rake-migrate-newest-method/</guid>
</item>
<item>
<title>(Ruby) Explore to_s(radix) on UTC Time - greystate</title>
<link>http://snipplr.com/view/2681/explore-tosradix-on-utc-time/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 May 2007 14:44:15 GMT</pubDate>
<guid>http://snipplr.com/view/2681/explore-tosradix-on-utc-time/</guid>
</item>
<item>
<title>(Ruby) Use helpers in controllers or models - vanne</title>
<link>http://snipplr.com/view/2505/use-helpers-in-controllers-or-models/</link>
<description><![CDATA[ <p>This is an easy to use any helpers that rails provides in any other place besides views and view helpers</p> ]]></description>
<pubDate>Wed, 18 Apr 2007 21:27:03 GMT</pubDate>
<guid>http://snipplr.com/view/2505/use-helpers-in-controllers-or-models/</guid>
</item>
<item>
<title>(Ruby) Shortcut for find method in rails - vanne</title>
<link>http://snipplr.com/view/2435/shortcut-for-find-method-in-rails/</link>
<description><![CDATA[ <p>Put this in environment.rb to use in your whole app or the console</p> ]]></description>
<pubDate>Wed, 04 Apr 2007 21:23:12 GMT</pubDate>
<guid>http://snipplr.com/view/2435/shortcut-for-find-method-in-rails/</guid>
</item>
<item>
<title>(Ruby) Rendering Partial Template while Passing Variable - wackimonki</title>
<link>http://snipplr.com/view/2219/rendering-partial-template-while-passing-variable/</link>
<description><![CDATA[ <p>Renders the partial template called 'cart', sends along local variable @cart, this will be known locally using the same name as the partial, 'cart'.</p> ]]></description>
<pubDate>Mon, 26 Feb 2007 22:08:26 GMT</pubDate>
<guid>http://snipplr.com/view/2219/rendering-partial-template-while-passing-variable/</guid>
</item>
</channel>
</rss>