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
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
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…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs