Ruby, Rails, Firefox, Anime, Mac
It’s been a slow week on the Rails trunk this week in terms of exciting changes.
This week’s report covers changes from 18 Feb 2008 to 24 Feb 2008 (the day the corresponding Rails Envy podcast was recorded).
You can now set the user and password for HTTP authentication in your ActiveResource models:
class Person < ActiveResource::Base self.site = 'http://example.com/' self.user = 'konata' self.password = 'password' end
This is a better way to specify authentication credentials than the current way of doing it by putting it all in the site (e.g.
self.site = 'http://konata:firstname.lastname@example.org/').
Related changeset: http://dev.rubyonrails.org/changeset/8891
You can now pass the
-e/--export option to
script/plugin install to do an Subversion export of the plugin. This allows you to then check in the plugin's files into your own repository. Though seriously, if anyone really wants to do this, I'd suggest they use Piston. That is, for those of us still using Subversion rather than Git.
Related changeset: http://dev.rubyonrails.org/changeset/8921
There've been some bug fixes the associations preloading change mentioned in Living on the edge #5:
:includes) errors out when the associations return
nil(i.e. when there are no associated records).
Yup, that's it for this week. As usual, let me know of anything I might have missed or any suggestions you may have in the comments!