Я в растерянности относительно того, что я делаю здесь неправильно. У кого-нибудь есть понимание?
Вот мои маршруты.рб
resources :accounts do
collection do
get "search/:term/:offset/:limit.:format", :action => "search", :constraints => { :offset => /\d+/, :limit => /\d+/ }
end
end
Вот вывод моих рейковых маршрутов ...
GET /accounts/search/:term/:offset/:limit.:format {:offset=>/\d+/, :action=>"search", :controller=>"accounts", :limit=>/\d+/}
Вот моя тестовая линия ...
get :search, :term => "Test", :offset => 0, :limit => 2
Вот моя ошибка ...
ActionController::RoutingError: No route matches {:term=>"Test", :action=>"search", :controller=>"accounts", :offset=>0, :limit=>2}
Есть идеи?
Заранее спасибо!