<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - wackimonki</title>
<link>http://snipplr.com/users/wackimonki</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 12:28:05 GMT</pubDate>
<item>
<title>(Ruby) Rendering Partial Template while Passing Variable</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>
<item>
<title>(Ruby) Testing If Variable is Empty (nil)</title>
<link>http://snipplr.com/view/2218/testing-if-variable-is-empty-nil/</link>
<description><![CDATA[ <p>The code tests if session[:counter] exists. If you leave out the all important '?', it will fail with an error.</p> ]]></description>
<pubDate>Mon, 26 Feb 2007 19:55:48 GMT</pubDate>
<guid>http://snipplr.com/view/2218/testing-if-variable-is-empty-nil/</guid>
</item>
<item>
<title>(Ruby) Totalling All of a Variable</title>
<link>http://snipplr.com/view/2217/totalling-all-of-a-variable/</link>
<description><![CDATA[ <p>This will add up all the prices and return it?
What does |item| mean exactly?</p> ]]></description>
<pubDate>Mon, 26 Feb 2007 19:04:12 GMT</pubDate>
<guid>http://snipplr.com/view/2217/totalling-all-of-a-variable/</guid>
</item>
<item>
<title>(Ruby) Redirect from One Method to Another</title>
<link>http://snipplr.com/view/2215/redirect-from-one-method-to-another/</link>
<description><![CDATA[ <p>Redirects from one method to another in a controller. This is handy when there's an error, and you need to go back to index page, or for other purposes.</p> ]]></description>
<pubDate>Mon, 26 Feb 2007 18:34:17 GMT</pubDate>
<guid>http://snipplr.com/view/2215/redirect-from-one-method-to-another/</guid>
</item>
<item>
<title>(Ruby) Adding Button to View</title>
<link>http://snipplr.com/view/2214/adding-button-to-view/</link>
<description><![CDATA[ <p>Adds a button in view, which triggers a method.

"Empty cart" is the button name
empty_cart is the method name</p> ]]></description>
<pubDate>Mon, 26 Feb 2007 18:29:08 GMT</pubDate>
<guid>http://snipplr.com/view/2214/adding-button-to-view/</guid>
</item>
<item>
<title>(Ruby) Catching Error to be Displayed on Redirected Page</title>
<link>http://snipplr.com/view/2213/catching-error-to-be-displayed-on-redirected-page/</link>
<description><![CDATA[ <p>Catches an exception error, uses a technique called flash to display error on another page.

The Ruby on Rails code needs to be in a controller.

The rhtml code needs to be in the index layout.</p> ]]></description>
<pubDate>Mon, 26 Feb 2007 17:58:12 GMT</pubDate>
<guid>http://snipplr.com/view/2213/catching-error-to-be-displayed-on-redirected-page/</guid>
</item>
</channel>
</rss>