Phil
On Sat, Apr 16, 2011 at 9:29 PM, sol.manager <sol.mana...@gmail.com> wrote: > I have been trying to get Solr up and running and have an app mostly > working but simple routes stuff is tripping me up. This is a Rails 3.0 > route. > > PlayingWithSunspot::Application.routes.draw do > resources :jobs do > collection do > get :search > end > end > > > So, what would the Rails 2.3.11 equivalent be for this route? I can't > seem to get the right syntax though I thought this was an example of a > resource route with a complex sub-resource. > Rails used to do this like: map.resources :jobs, :collection => {:search => :get} You can also still find the rails 2.3.x rails guides, which includes the routing guide, from the index page of http://guides.rubyonrails.org/ > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.