<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>this oughta be interesting...</title>
	<link>http://joshsharpe.com</link>
	<description></description>
	<lastBuildDate>Tue, 06 Dec 2011 17:52:11 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.2.1" -->

	<item>
		<title>skinny models! yay!</title>
		<description><![CDATA[This guy doesn&#8217;t deserve credit for this idea, but his explanation is on point. http://qualityonrails.com/archives/33]]></description>
		<link>http://joshsharpe.com/archives/skinny-models-yay</link>
			</item>
	<item>
		<title>Rails3 Upgrade #1 &#8211; Delayed Mailers</title>
		<description><![CDATA[Sending emails inside your request/response cycle is one of the slower things you can do to users. A while ago, I contrived a way to delay every single email in my application in one fell swoop, without having to change my models and controllers that were actually sending the email. That is, I wanted to [...]]]></description>
		<link>http://joshsharpe.com/archives/rails3-upgrade-1-delayed-mailers</link>
			</item>
	<item>
		<title>Rails3 Upgrade Intro</title>
		<description><![CDATA[I launched into a rails 3 upgrade for my main side project last night. I&#8217;m going to use it as an excuse to blog about a bunch of things that I&#8217;ve been meaning to write about, but never got around to. Here&#8217;s a quick look at the scope of this app: $ rake stats +----------------------+-------+-------+---------+---------+-----+-------+ [...]]]></description>
		<link>http://joshsharpe.com/archives/rails3-upgrade-intro</link>
			</item>
	<item>
		<title>I don&#8217;t know, can you?</title>
		<description><![CDATA[&#60;rant&#62; There has been, and continues to be, a lot of talk around writing semantic code. One thing that gets under my skin, and I wish it would stop, is the continued use of #can?(:do_something) as a pattern for handling permissions. I have no problem with the pattern itself, it&#8217;s the verb I take issue [...]]]></description>
		<link>http://joshsharpe.com/archives/i-dont-know-can-you</link>
			</item>
	<item>
		<title>jquery.dateTimePicker</title>
		<description><![CDATA[I did a ground up re-write of my date-time picker. It now only relies on jQuery (1.4.1) and jQuery UI (1.8rc1). Use case is pretty simple right now: $(function(){ $('#datetimepicker').dateTimePicker(); $('#datepicker').dateTimePicker({showTime: false}); $('#timepicker').dateTimePicker({showDate: false}); }); See the demo for more details. Enjoy!]]></description>
		<link>http://joshsharpe.com/archives/jquery-datetimepicker-2</link>
			</item>
	<item>
		<title>error and success messages and the like&#8230;</title>
		<description><![CDATA[For one of my apps I&#8217;ve developed what I think is a very easy to use and consistent way of handling error and success messages throughout my app. It would be a lie if I called the following list a set of goals since they evolved over time, but there&#8217;s definitely a bit of philosophy [...]]]></description>
		<link>http://joshsharpe.com/archives/error-and-success-messages-and-the-like</link>
			</item>
	<item>
		<title>SSL! Abort Trap! Egad!</title>
		<description><![CDATA[This recently happened to me: $ rake db:migrate /Users/jsharpe/.rvm/ree-1.8.7-2009.10/lib/ruby/1.8/openssl/ssl.rb:31: [BUG] Bus Error ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0], MBARI 0x8770, Ruby Enterprise Edition 2009.10 Abort trap I&#8217;m really not sure who the culprit is here. I don&#8217;t think it&#8217;s REE since it also happens with 1.8.7. So is it 1.8.7? Is it RVM? Openssl? Or [...]]]></description>
		<link>http://joshsharpe.com/archives/ssl-abort-trap-egad</link>
			</item>
	<item>
		<title>nested relations in ActiveRecord</title>
		<description><![CDATA[I personally don&#8217;t think this is all that exciting &#8212; but I see this question asked a lot and just want something to point at from now on. Say you have several &#8216;nested&#8217; has_many relations: class State < ActiveRecord::Base has_many :cities end class City < ActiveRecord::Base has_many :streets belongs_to :state end class Street < ActiveRecord::Base [...]]]></description>
		<link>http://joshsharpe.com/archives/nested-relations-in-activerecord</link>
			</item>
	<item>
		<title>the single best active record learning tool that exists. period. the end.</title>
		<description><![CDATA[Every once in a while I see this little code snippet show up somewhere: script_console_running = ENV.include?('RAILS_ENV') &#38;&#38; IRB.conf[:LOAD_MODULES] &#38;&#38; IRB.conf[:LOAD_MODULES].include?('console_with_helpers') rails_running = ENV.include?('RAILS_ENV') &#38;&#38; !(IRB.conf[:LOAD_MODULES] &#38;&#38; IRB.conf[:LOAD_MODULES].include?('console_with_helpers')) irb_standalone_running = !script_console_running &#38;&#38; !rails_running if script_console_running require 'logger' Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT)) end You see, if you drop this little gem in ~/.irbrc you&#8217;ll start getting the SQL [...]]]></description>
		<link>http://joshsharpe.com/archives/the-single-best-active-record-learning-tool-that-exists-period-the-end</link>
			</item>
	<item>
		<title>redirect back or default &#8212; you&#8217;re (probably) doing it wrong</title>
		<description><![CDATA[A basic authentication scheme should go to some length to do a little bit of remembering in the event your user hits a restricted page before they are actually authenticated. First, some context. I&#8217;ve got this in my ApplicationController: def require_user unless current_user store_location redirect_to login_path return false end end def store_location session[:return_to] = request.request_uri [...]]]></description>
		<link>http://joshsharpe.com/archives/redirect-back-or-default-youre-probably-doing-it-wrong</link>
			</item>
</channel>
</rss>

