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 => { :id => /.*/ }
Rejoice.
(Possibly) Related Posts
- Multi Model Forms & Validations in Ruby on Rails
- SWFUpload, Paperclip and Ruby on Rails
- Creating PDF Documents in Ruby on Rails
If you found this post or anything else on this site of any use, then please take the time to recommend me on Working with Rails.

