I’m developing a facebook app and all of my routes go something like
this :org_id/:controller/:action/:id , where all of my urls will be
prepended by this org_id. Is there a way to have all routes recognize
this org_id, even the generated named routes? I have the following in
my routes.rb:
map.connect ‘:org_id’, :controller => ‘orgs’, :action => ‘index’
map.connect ‘:org_id/:controller/:action/:id’
map.connect ‘:org_id/:controller/:action:/id.:format’
When I try to go to a route like www.example.com/groups/1, I get this
message:
No action responded to 1
So how do I make all routes recognize the prepended :org_id without
manually making an entry for each one?
Thank you,
Jon