As far as your link_to usage, yes. They’re the same. The named route is
easier to maintain codewise but a little slower [at least in the olden
days]
than writing it out by hand like you do in the second example. The
difference between those last map.connect and map.details is 1.
map.detailscreates a named route where
map.connect doesn’t and 2. You’ll need to add the mapping “nj/:id” to
map.detail.