1

Google bot 想要打开我的 Ajax 地址,例如: http ://ots.wlasowy.ru/ru?_escaped_fragment_=/ru/pages/service 我有一个类似match 'pages/service', :to => 'pages#service'in的记录routes.rb

我还需要添加routes.rb什么?

我的路线.rb:

scope "(:locale)", :locale => /en|ru/ do

match '/pages/news' => 'pages#news'
match '/articles/page/:page',  :to => 'pages#news'
match '/pages/home' => 'pages#home'

resources :pages
resources :articles
resources :vacancies

mount Ckeditor::Engine => '/ckeditor'

mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'

devise_for :users

devise_scope :user do
  get "sign_in", :to => "devise/sessions#new"
end

end
4

1 回答 1

0

添加你的 route.rb,查看文件。您的代码中有一些错误。

于 2012-09-05T17:39:30.033 回答