So I have an existing rails app that I've been asked to retrofit to support a flex client. Since I don't really want to muck around with the existing controllers and routes, I thought the best way to accomplish this would be to create a subdirectory in app/controllers called flex and put in some additional controllers in there to handle the flex specific requests.
So basically, instead of a request to /sessions/ [method = POST] I'd want to route /flex/sessions/ [method = POST] to go to my sessions_controller in the flex sub directory. I can get it to go to the correct controller, but it's looking for the idnex method (so it looks like it's treating my request as a GET request even though the log says its a POST request.
Any thoughts on how to add this controller to my routes file to handle the HTTP verbs?
Right now the only addition to my routes.rb has been
map.connect 'flex/sessions/:action', :controller => 'flex/sessions'
Thanks in advance for any help.
s.park