April 2010
6 posts
The Tea Party is Racist
http://politicalirony.com/2010/04/27/the-tea-party-is-racist/ Posted via email from a timocracy of one | Comment »
Apr 28th
Unobtrusive JavaScript vs. Kool-Aid
Great response to @jamis’ UJS == Kool-aid posts. Welcome to the post-2005 era of web dev. ;) Unobtrusive JavaScript vs. Kool-Aid via DailyJS on 4/26/10 This article is a guide to writing unobtrusive JavaScript. It’s not always easy for people to transition to writing JavaScript this way, so I’ve tried to address common concerns. The techniques presented here should enable you to think...
Apr 28th
4 tags
Following up on how to test a config.ru, an actual...
http://github.com/timocratic/rack-test/commit/dd5324627890b4632c07deed1fc2528… Posted via email from a timocracy of one | Comment »
Apr 22nd
4 tags
Testing a rackup (config.ru) file with Rack::Test
The ever useful rack-test gem let’s you easily integration test any rack project.  All you have to do is include the Rack::Test::Methods and define an app method that returns your rack app.  So people usually have a config.ru that just references their my_application.rb that they reference in their config.ru and then in their test file they can also reference that app and return it....
Apr 21st
Just making sure it fits before...
Posted via email from a timocracy of one | Comment »
Apr 15th
3 tags
Beware respond_to format with redirects in shared...
If you use an authenticated_system on your Rails site, with global before_filters for things like requiring login to access pages, be careful of missing formats in the respond_to.  I just tracked down a bug on an app where we were getting DoubleRenderErrors because of unauthenticated request directly to a csv file.  We had a before_filter that was denying request and redirecting them to login, in...
Apr 13th