Hello world!
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!
Somewhere between Ruby on Rails versions 2.3.0 (RC1) and 2.3.2 (final) a change was made to the arguments required for one of the methods the theme_support plugin requires. I must confess I hadn’t spotted it, but github user knapo kindly sent me a message with a patch. That patch is now applied in the main repository, as are a few tweaks to the ActionMailer integration to better handle multipart emails. You can get the new version from github. ...
The Cost of Accessibility? Comments by Drew McLellan on the recently released Atlas IDE for the Cappuccino web framework, and the need for accessibility to be taken into account in any new approach to web app development. Accessibility & Degradation in Cappuccino A response to Drew’s piece. I’m not entirely convinced, but that may be because I still feel like any attempt to bring desktop-style-GUIs to the web is missing the point. ...
Initial Release Of Moneta: Unified Key/Value Store API A new library from Yehuda Katz that seeks to provide a unified interface for key/value stores, meaning you can treat memcached and any other similar caching or database system as a ruby hash. Twitter OAuth Spotted in the Wild Excellent news. Hopefully soon we can get away from the ridiculous situation where every new twitter app wants to know my password. Or in other words, those of us who care about security can actually start using new twitter apps again. ...
Kevin Kelly, of Wired Magazine and Long Now Foundation fame, has a lengthy piece on his blog exploring the Amish adoption of technology. It wasn’t until we watched the documentary Devil’s Playground a few years back that I was really aware of the Amish approach to selectively adopting new technologies only once they’ve explored their likely social impact and how they fit with their core values. I’m not sure I could convince myself to slow down that much, but it’s a fascinating idea: ...
Selected links that seem to deserve a bit more traction and longevity than a simple mention on twitter. Big themes this week were the release of Rails 2.3 RC 1 (which I explored through my work on the theme_support plugin and Clay Shirky’s series of talks in London. theme_support aside, I’ve mostly been focussed on some to-be-revealed developments to Generous and release an early version of the new Street Action site (DNS will hopefully propagate on that soon). ...
In my ongoing efforts to bring my fork of theme_support in line with Rails 2.3 I’ve covered the core views and email, but when I left off earlier today layouts still weren’t working. The key problem with overriding layouts is that the process of identifying them relies on some class methods on ActionController::Base (provided in the ActionController::Layout module). Roughly put we have: ActionController::Base#render calls ActionController::Base#pick_layout ActionController::Base#pick_layout checks to see if there’s a specific layout requested and calls ActionController::Base#active_layout ActionController::Base#active_layout checks whether there’s a candidate layout for this controller or action and makes sure the layout exists by calling ActionController::Base.find_layout ActionController::Base.find_layout (class method) is called which checks the view_paths to find the appropriate layout in there The issue is that as a class method ActionController::Base.active_layout has no knowledge of the specific controller instance, or the request object it contains, and so it can’t access our logic to determine the current theme. ...
Stage 2 of fixing up theme_support for Rails 2.3 was making sure that ActionMailer picked up themed templates (for stage 1 information see here). That’s something I’d not quite cracked in the 2.2 version, so starting afresh with 2.3 forced me to spend the time to look through the full render path and figure out what was going on. ActionMailer is a little more complicated than ActionView in that there are multiple routes of entry (ways of sending emails) and each email can have multiple templates associated with it to allow for multipart email. But at the core of it all is the ActionMailer::Base#create! method. This executes the specific method that populates the mailer variables (ie. the code you actually write in your mailers) and then uses Dir.glob to look for appropriate templates for this email: ...
A couple of months back, I realised that two of my projects ( Generous and Catapult) could do with the help of the theme_support Rails plugin. Discovering that it didn’t play nicely with Rails 2.1, I created a fork on github and hacked at the _pick_template method to get it to do what I wanted. It turned out a few people were interested in having the plugin work with Rails 2.1, some of whom used more of the plugin’s featured than I need, and a few further forks emerged. I’ve been meaning to work through them and merge together the best bits, but the impending release of Rails 2.3 stopped me in my tracks. ...
For a few years, the Oscars got quite a lot of my attention. It’s not that I often agreed with the Academy’s choice, but I did try and make sure I’d seen as many as possible of the nominated films, and was eager to engage in commentary about the rights and wrongs of the Academy’s choices. This year, I’ve found myself almost entirely disinterested. But I did read Stephanie Zecharek’s overview—" Let’s Beat Up On The Oscars"—and enjoyed a couple of sections enough to want to share. ...