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