<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>Sara Trice</title>
	<link>http://saratrice.com</link>
	<description>Just a programmin&#039;, bellydancin&#039;, cake bakin&#039; kinda girl</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:56:16 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.2.1" -->

	<item>
		<title>Avoiding Ruby hash conditionals in Ruby on Rails</title>
		<description><![CDATA[This gets really old: if params[:teacher] &#38;&#38; params[:teacher][:id] ... so instead, do this: if params[:teacher].try(:[], :id) or do it a lot more: name = params[:company][:owner][:name] if params[:company] and params[:company][:owner] and params[:company][:owner][:name] turns into: name = params.try(:[], :company).try(:[], wner).try(:[], :name) Yay for Stack Overflow!]]></description>
		<link>http://saratrice.com/2012/02/09/avoiding-ruby-hash-conditionals-in-ruby-on-rails/</link>
			</item>
	<item>
		<title>Quickie: How to add a blank option to options_from_collection_for_select</title>
		<description><![CDATA[&#60;%= select_tag "some_select", ("&#60;option&#62;&#60;/option&#62;" + options_from_collection_for_select(@foo, "id", "item")).html_safe %&#62;]]></description>
		<link>http://saratrice.com/2011/12/28/quickie-how-to-add-a-blank-option-to-options_from_collection_for_select/</link>
			</item>
	<item>
		<title>Using javan/whenever on Engine Yard Cloud</title>
		<description><![CDATA[Things I wish I&#8217;d have known: 1. It does not matter if whenever is in your gemfile, you have to SSH to your EY server and install whenever as such: sudo gem install whenever 2. It will probably complain that you don&#8217;t have i18n installed, so: sudo gem install i18n EDIT: You will have to [...]]]></description>
		<link>http://saratrice.com/2011/09/28/using-javanwhenever-on-engine-yard/</link>
			</item>
	<item>
		<title>Illinois Home Bakeries &#8211; for farmer&#8217;s markets only</title>
		<description><![CDATA[Interesting tidbit about a new law that is being passed. IL Senate Bill 840 allows for &#8220;Cottage food operations&#8221; (i.e. you can use your home kitchen), with several stipulations, if and only if you are selling goods at a farmers&#8217; market. So if I wanted to sell my cakes at a farmer&#8217;s market and got [...]]]></description>
		<link>http://saratrice.com/2011/09/09/illinois-home-bakeries-for-farmers-markets-only/</link>
			</item>
	<item>
		<title>jsTree: adding Expand All and Collapse All buttons</title>
		<description><![CDATA[The documentation for jsTree is thorough, but not particularly easy to read. If you are looking for an easy way to add &#8220;Expand All&#8221; and &#8220;Collapse All&#8221; buttons, here&#8217;s one way: &#60;input type="button" value="Collapse All" onclick="$('#tree_container_id').jstree('close_all');"&#62; &#60;input type="button" value="Expand All" onclick="$('#tree_container_id').jstree('open_all');"&#62; where &#8216;#tree_container_id&#8217; is, of course, the ID of the container node for your tree.]]></description>
		<link>http://saratrice.com/2011/05/04/jstree-adding-expand-all-and-collapse-all-buttons/</link>
			</item>
	<item>
		<title>Uploadify: changing scriptData with dropdowns</title>
		<description><![CDATA[Uploadify is a pretty awesome jQuery/flash uploader. It&#8217;s made even more awesome by the stuff you can do with it on the fly. For example, if you want to pass a variable chosen from a dropdown via the uploader, you can use uploadifySettings() to do so. Some people appear to have problems with this part, [...]]]></description>
		<link>http://saratrice.com/2011/04/11/uploadify-changing-scriptdata-with-dropdowns/</link>
			</item>
	<item>
		<title>Music industry shifts to being a service? Good news, bad news&#8230;</title>
		<description><![CDATA[Here&#8217;s an interesting read from Ars Technica: Did file-sharing cause recording industry collapse? Economists say no The most interesting paragraph I see in this article is this one: So what is emerging is an increasingly &#8220;ephemeral&#8221; global music culture based not upon the purchasing of discrete physical packages of music, but on the discovery and [...]]]></description>
		<link>http://saratrice.com/2011/03/23/music-industry-shifts-to-being-a-service-good-news-bad-news/</link>
			</item>
	<item>
		<title>Testing CKEditor in Ruby on Rails with Cucumber/Capybara</title>
		<description><![CDATA[I have a textarea with the id of &#8220;request_details&#8221;, made into a CKEditor instance by jQuery: $(&#8216;#request_details&#8217;).ckeditor(); (Check this page if you need some help getting CKEditor to work with jQuery, it&#8217;s dead simple) Feature looks like this:  And I fill in "Here are some details" in the CKEditor instance "request_details" Step looks like this: [...]]]></description>
		<link>http://saratrice.com/2011/03/09/testing-ckeditor-in-ruby-on-rails-with-cucumbercapybara/</link>
			</item>
	<item>
		<title>My least favorite phrase</title>
		<description><![CDATA[I&#8217;ve decided on my least favorite phrase in the English language: &#8220;Can&#8217;t you just&#8230;?&#8221; Why is this my least favorite phrase? Because: It&#8217;s always in conjunction with a task that the questioner does not understand, but assumes should not be difficult at all; it is inherently second-guessing the person being asked, which is insulting; and, [...]]]></description>
		<link>http://saratrice.com/2011/02/23/my-least-favorite-phrase/</link>
			</item>
	<item>
		<title>Using mysql2 on Windows</title>
		<description><![CDATA[Another edition of Sara uses Rails on Windows! *muppety fanfare* Trying to get mysql2 to run on Windows is a bit of a pain. I used the lovely installer from Railsinstaller.org and then created an app with : rails new testapp -d mysql and then bundled. By default this installs the mysql2 gem. There are [...]]]></description>
		<link>http://saratrice.com/2011/02/19/using-mysql2-on-windows/</link>
			</item>
</channel>
</rss>

