Just a quick one. Say you have a route like the following:
map.resources :users
And you’re using email addresses to look up users like:
/users/jim@somewhere.com
You’re going to run into an error along the lines of:
Missing template users/show.com.erb in view path blah/app/views
Which obviously isn’t what you want. To fix this, change your route to the following:
map.resources :users, :requirements => [...]
This is a just a quick post that will hopefully save some people a hell of a lot of time.
If you’re trying to get the width and height of a flash file, a banner for example, then you can use the ImageSpec library by Brandon Anderson.
You can checkout the code with the following:
svn checkout http://ruby-imagespec.googlecode.com/svn/trunk/ [...]
More updates to Bort from myself and the rest of the Fudge Studios chaps this week, due to response from the public, that’s you.
Updated to Rails 2.1.1
I’m sure this doesn’t require much of an explanation. Bort has been updated to Rails 2.1.1. Word.
Role Requirement
Quite a few people asked for roles in Bort so now you’ve [...]