Map.connect or map.resources?


#1

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


#2

On 2008-12-08, at 21:12, Nick wrote:

Cheers,
Nick

BTW, that second option should actually be this:

map.connect ‘/maps’,
:controller => ‘maps’,
:action => ‘index’

Thanks!
Nick


#3

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…