Is it possible to set :format using map.resources?

It seems to be really easy to use responds_to if you are using a
map.connect route to set the format for mobile. But how would you do the
same thing with a map.resource route?

map.connect “mobile/people”, :controller => “people”, :format =>

Doesn’t Work:
map.resources :people, :format => “mobile”

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