Can I strip a file suffix off a URL with routing?

I would like a route that strips of the suffix of a url before
determining the action. Eg:

http://mydomain.com/my_controller/my_action.pdf

Would map to: { :controller => ‘my_controller’, :action => ‘my_action’
}

Is this possible?

Thanks,
-Jonathan.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs