Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miss routing ajax request #15

Open
old-grrt opened this issue Aug 8, 2010 · 0 comments
Open

miss routing ajax request #15

old-grrt opened this issue Aug 8, 2010 · 0 comments

Comments

@old-grrt
Copy link

old-grrt commented Aug 8, 2010

XMLHttpRequests are being miss routing, any idea way?

GET http://sd.mydomain.com/categories/1 routed properly.
(SD::CategoriesController < SDApplicationController)

new Ajax.Request('http://sd.mydomain.com/categories/1', {asynchronous:true, evalScripts:true, method:'get'...
routed to ApplicationController#index

Also I got

ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
which does not make much sense since its set as get request.

My routes

map.subdomain :sd do |sd|
sd.resources :categories, :controller => "sd/categories"
end
map.resource :categories

Am i doing something wrong, is it a bug or a constraint?

I appreciate any insights

subdomain-fu 0.5.4
rails 2.3.8
ruby 1.8.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant