Проблема, с которой я столкнулся, заключается в том, что любое действие «delete», которое вызывается в IE-7, переходит в «show» вместо выполнения уничтожения. «Выход» завершается попыткой того же, но не удается, так как для account_session нет действия «show». Самое смешное, что в Firefox-3.6.x все отлично работает. Я использую Authlogic для аутентификации, но не думаю, что это имеет значение.
Может кто-нибудь заметить проблему с моими маршрутами? или знаете почему IE их не любит?
routes.rb
resource :account_session
root :controller => "account_sessions", :action => "new" # optional, this just sets the root route
resources :accounts
resource :account, :controller => "accounts"
resource :password_resets, :controller => "password_resets" #, :only => [:new, :edit]
resources :password_resets
resources :students
resources :departments
resources :exhibitions, :only => [:destroy, :update]
resources :projects do
resources :exhibitions, :only => [:create, :edit, :index, :new, :show]
end
resources :tags
resources :medias, :only => [:destroy, :update, :create, :edit, :new, :show]
resources :projects do
resources :medias, :only => [:create, :edit, :index, :new, :show, :update]
end
controller :advanced_search do
get 'search' => :new
get 'search_results' => :index
post 'search_results' => :index
end
get "activate" => 'activations#create'
get "password_reset" => 'password_resets#edit'
get "profile" => 'students#show'
controller :admin do
get 'admin' => :index
post 'admin/profile' => :update
end
resources :students do
resources :projects do
get :unlink, :on => :member
end
end
resources :tags do
resources :projects do
get :untag, :on => :member
end
end
get "" => 'accounts#new'
controller :account_sessions do
delete 'logout' => :destroy
end
get "register" => 'accounts#new'
match '/pages', :to => 'pages#show'
root :to => "accounts#new"