Ok it's answer my own question time. What I needed was
map.connect 'media/avatars/:id/:filename',
:controller => 'media',
:action => 'avatars',
:requirements => {
:id => /\d+/,
:filename => /\S+\.\S+/
}
Works fine now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---