<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>this oughta be interesting...</title>
	<link>http://joshsharpe.com</link>
	<description></description>
	<lastBuildDate>Mon, 05 Apr 2010 17:41:34 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<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 [...]]]></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 [...]]]></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
  has_many :houses
 [...]]]></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;
             [...]]]></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
    [...]]]></description>
		<link>http://joshsharpe.com/archives/redirect-back-or-default-youre-probably-doing-it-wrong</link>
			</item>
	<item>
		<title>coverage testing</title>
		<description><![CDATA[Here&#8217;s a little bit of rcov love to ensure that your test suites are covering what they should be.
http://gist.github.com/206379
This should give you:

rake test:rcov
rake test:rcov:units
rake test:rcov:functionals
rake test:rcov:helpers

&#8230;with a tailored coverage report for each.
Hopefully this can give you a better idea of where your tests are lacking.  As it turns out, despite my app having coverage [...]]]></description>
		<link>http://joshsharpe.com/archives/coverage-testing</link>
			</item>
	<item>
		<title>jquery.dateTimePicker</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
    [...]]]></description>
		<link>http://joshsharpe.com/archives/jquery-datetimepicker</link>
			</item>
</channel>
</rss>
