Quick question: Would it be better to use this?:
map.resources :maps, :only => [:index]
or this?:
map.connect '/maps', :controller => :maps, :action => :index
Cheers, Nick
Quick question: Would it be better to use this?:
map.resources :maps, :only => [:index]
or this?:
map.connect '/maps', :controller => :maps, :action => :index
Cheers, Nick
BTW, that second option should actually be this:
map.connect '/maps', :controller => 'maps', :action => 'index'
Thanks! Nick
I would vote for number one... just looks cleaner and its easier to add changes down the road like :only => [:index,:ajax_update] or something like that...
just my 1 cent..